Badge

Title

Subtitle

Title

Title

Desc

Title

Desc

Title

Desc

Title

Desc

Title

Desc

Title

Desc

Credenciais Sandbox

Duas chaves — uma pra abrir sessão (launch token) e uma pra assinar chamadas da Seamless Wallet. Confira o prefixo dos 12 primeiros caracteres pra garantir que colou o valor certo do seu lado.

IGAMING_API_TOKEN_SANDBOX
Ausente
—

Bearer token pra abrir sessão no sandbox. Copie do painel do operador.

SANDBOX_WALLET_HMAC_SECRET
Ausente
—

Assina x-signature (HMAC-SHA256) nas chamadas /debit /credit /rollback.

Title

Desc

  1. 1

    Title

    Desc

  2. 2

    Title

    Desc

  3. 3

    Title

    Desc

  4. 4

    Title

    Desc

  5. 5

    Title

    Desc

Title

Desc

List Title

POST
/authenticate

Authenticate

POST
/balance

Balance

POST
/debit

Debit

POST
/credit

Credit

POST
/rollback

Rollback

POST
/query

Query

GET
/stats

Stats

GET
/reset

Reset

Base Url https://sandbox.i-gaming.co/api/public/v1/sandbox/wallet

Example Title

Curl
curl -X POST https://sandbox.i-gaming.co/api/public/v1/sandbox/wallet/debit \
  -H "content-type: application/json" \
  -H "x-signature: <hmac_sha256(body, SANDBOX_WALLET_HMAC_SECRET)>" \
  -H "x-idempotency-key: round_123" \
  -d '{"user_id":"demo_1","amount":100,"currency":"BRL","round_id":"r_1"}'

Example Note

Title

Desc

  • Raw
  • Algo
  • Header
  • Idempotency
  • Clock
  • Verify

Node Title

Node
import { createHmac } from "crypto";

const body = JSON.stringify({ user_id: "demo_1", amount: 100, currency: "BRL", round_id: "r_1" });
const signature = createHmac("sha256", process.env.SANDBOX_WALLET_HMAC_SECRET!).update(body).digest("hex");

await fetch("https://sandbox.i-gaming.co/api/public/v1/sandbox/wallet/debit", {
  method: "POST",
  headers: {
    "content-type": "application/json",
    "x-signature": signature,
    "x-idempotency-key": "round_123",
  },
  body,
});

Python Title

Python
import hmac, hashlib, json, os, requests

body = json.dumps({"user_id":"demo_1","amount":100,"currency":"BRL","round_id":"r_1"}, separators=(",",":"))
sig = hmac.new(os.environ["SANDBOX_WALLET_HMAC_SECRET"].encode(), body.encode(), hashlib.sha256).hexdigest()

requests.post(
  "https://sandbox.i-gaming.co/api/public/v1/sandbox/wallet/debit",
  data=body,
  headers={
    "content-type": "application/json",
    "x-signature": sig,
    "x-idempotency-key": "round_123",
  },
)

Php Title

php
<?php
$body = json_encode(["user_id"=>"demo_1","amount"=>100,"currency"=>"BRL","round_id"=>"r_1"]);
$sig = hash_hmac("sha256", $body, getenv("SANDBOX_WALLET_HMAC_SECRET"));
$ch = curl_init("https://sandbox.i-gaming.co/api/public/v1/sandbox/wallet/debit");
curl_setopt_array($ch, [
  CURLOPT_POST => true,
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_HTTPHEADER => [
    "content-type: application/json",
    "x-signature: $sig",
    "x-idempotency-key: round_123",
  ],
  CURLOPT_POSTFIELDS => $body,
]);
$response = curl_exec($ch);

Title

Desc

ParamExampleEffect
lat_min50Lat Min
lat_max800Lat Max
err_rate0.1Err Rate
timeout_rate0.05Timeout Rate
insuff_rate0.02Insuff Rate
rtp0.97Rtp

Example Title

https://sandbox.i-gaming.co/api/public/v1/sandbox/wallet/debit?lat_max=800&err_rate=0.1&timeout_rate=0.05

Example Note

Title

Desc

Title

Desc

Title

Desc

Title

Desc

Title

Desc

Title

Desc

Title

Desc

Title

Desc

Title

Desc

Title

Desc

  • Signed
  • Idem
  • Retry
  • Rollback
  • Logs
  • Clock
  • Secrets
  • Webhook
  • Monitoring
  • Currency

Title

Q

A

Q

A

Q

A

Q

A

Q

A

Q

A

Title

Desc

Title

Desc

Note