YOUR WALLET.
OUR TEST ROUNDS.
Implement this small test-wallet contract, connect in the developer console and inspect debits, payouts, rollbacks and safe retries for both slots.
TEST CREDITS ONLY.
Use a dedicated EUR sandbox player and a short-lived, limited sandbox Bearer token. The console calls your wallet directly from the browser. The token stays in page memory, is sent only to the selected endpoint and must be entered again after a reload. Recovery journals stay in this browser. Redacted terminal reports are saved privately to your Static Riot account and can be reopened on another device. Disconnect clears the token.
Use a public HTTPS hostname on port 443, with an optional path prefix, for example https://wallet-sandbox.example.com/static-riot. URL credentials, query parameters, fragments, IP literals and local/private hostnames are rejected in the published console. Redirects are rejected. Loopback HTTP is supported only from a local console preview.
Your existing wallet needs an adapter for this contract. This test connector does not enable external-wallet gameplay or real-money wagering.
ALLOW THE CONSOLE ORIGIN.
Handle unauthenticated OPTIONS preflight requests. Include CORS headers on success and error responses. Configure the exact console origin you use; the production domain is shown below. Cookies are omitted.
Access-Control-Allow-Origin: https://staticriot.dev Access-Control-Allow-Methods: GET, POST, OPTIONS Access-Control-Allow-Headers: Authorization, Content-Type, Idempotency-Key, X-Static-Riot-Environment Vary: Origin
All requests carry Authorization: Bearer YOUR_SANDBOX_TOKEN and X-Static-Riot-Environment: sandbox. POST bodies use JSON. Each transaction POST also carries Idempotency-Key equal to its transactionId. Validate the token's sandbox player scope on every endpoint. Never use a production credential.
IDENTIFY YOUR TEST WALLET.
POST {base}/handshake must validate the player and return the same safety fields plus its current nonnegative integer-cent balance. No transaction is sent until this response passes validation.
// Request
{
"protocol": "static-riot-sandbox-wallet-v1",
"environment": "sandbox",
"funds": "test_credits",
"redeemable": false,
"playerId": "your-dedicated-test-player",
"currency": "EUR"
}
// HTTP 200 response
{
"protocol": "static-riot-sandbox-wallet-v1",
"environment": "sandbox",
"funds": "test_credits",
"redeemable": false,
"playerId": "your-dedicated-test-player",
"currency": "EUR",
"balanceCents": 100000000
}Use sufficient fake credits for both slots' test rounds. Five settlement modes use a €0.05 base bet: debits are 5, 15, 600, 1,200 and 5,000 cents. A run is a small volatile sample of the frozen game engine; its observed return is not an RTP estimate.
ATOMIC MOVEMENT. STABLE RECEIPTS.
POST {base}/transactions accepts a debit, credit or rollback. Commit the balance change and its immutable receipt atomically. All amount and balance fields are whole EUR cents. The player and round must match the referenced debit.
{
"operation": "debit",
"transactionId": "original-round-id:debit",
"roundId": "original-round-id",
"playerId": "your-dedicated-test-player",
"currency": "EUR",
"amountCents": 5
}
// HTTP 200 or 201; credit and rollback also echo referenceTransactionId.
{
"receipt": {
"operation": "debit",
"transactionId": "original-round-id:debit",
"roundId": "original-round-id",
"playerId": "your-dedicated-test-player",
"currency": "EUR",
"amountCents": 5,
"status": "succeeded",
"balanceBeforeCents": 100000000,
"balanceCents": 99999995
}
}| Operation | Required behaviour |
|---|---|
debit | Subtract the exact amount once. Reject insufficient test funds without a balance change. |
credit | Include referenceTransactionId pointing to the successful debit. Add the exact frozen payout once. A zero credit closes the round. A second credit ID must not settle the same debit again. |
rollback | Reference the original debit and its exact amount. Refund an unsettled successful debit once. Include refundedCents in the receipt. Refuse a refund after successful credit, including a zero credit. |
| Exact duplicate | Return the original receipt byte values, including its original before/after balances. Do not move credits again. |
| Changed payload, same ID | Return HTTP 409 with {"error":{"code":"IDEMPOTENCY_CONFLICT"}}. Keep the original receipt and balance. |
| Rejected operation | Use a receipt with status: "rejected", a stable code and unchanged before/after balances. Retain the original rejection for duplicate retries. |
LOOK UP. RETRY THE ORIGINAL.
GET {base}/transactions/{transactionId} returns {"receipt": ORIGINAL_RECEIPT}. For an unknown ID, return {"receipt":null} or HTTP 404. Enforce the same token/player ownership as on POST.
The console journals the outcome and transaction IDs before sending a mutation. If a response is lost, it looks up that ID and retries the identical request. A missing receipt does not prove that an earlier request cannot still commit. Retain transaction IDs and receipts throughout the run and recovery period. Never turn an uncertain credit into an automatic debit refund.
Timeout and lost-response scenarios include faults injected by the browser before dispatch or after receiving a response. They test client recovery against your wallet's idempotency. They do not prove wallet-side process crash recovery or database fault handling. Real network failures pause the run; contradictory receipts stop it for review.
INSPECT EVERY STEP.
The console shows each game, mode, original outcome hash, debit, credit, rollback, transaction ID and before/after balance. Reconnect to the same endpoint and player to resume after a reload. Keep browser storage until all uncertain transactions are resolved, and avoid changing the dedicated test player's balance from another tool during a run.
Reports contain browser observations stored as immutable account snapshots. They exclude wallet URLs, player identifiers and credentials. Open Saved wallet reports in the console to create a 7-, 30- or 90-day read-only share link for an operator or aggregator; anyone with the link can read the report until you revoke it or it expires. Recovery journals remain on the original device. Saved reports are not independently verified wallet evidence, partner approval or game certification. The published 98% theoretical game math remains unchanged.