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_SANDBOXAusente
—
Bearer token pra abrir sessão no sandbox. Copie do painel do operador.
SANDBOX_WALLET_HMAC_SECRETAusente
—
Assina x-signature (HMAC-SHA256) nas chamadas /debit /credit /rollback.
Title
Desc
- 1
Title
Desc
- 2
Title
Desc
- 3
Title
Desc
- 4
Title
Desc
- 5
Title
Desc
Title
Desc
List Title
POST
/authenticateAuthenticate
POST
/balanceBalance
POST
/debitDebit
POST
/creditCredit
POST
/rollbackRollback
POST
/queryQuery
GET
/statsStats
GET
/resetReset
Base Url
https://sandbox.i-gaming.co/api/public/v1/sandbox/walletExample 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
| Param | Example | Effect |
|---|---|---|
lat_min | 50 | Lat Min |
lat_max | 800 | Lat Max |
err_rate | 0.1 | Err Rate |
timeout_rate | 0.05 | Timeout Rate |
insuff_rate | 0.02 | Insuff Rate |
rtp | 0.97 | Rtp |
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