Guides

Sandbox

A safe copy of the real thing. Same API, same engine, same records, and no real money.

Base URL https://sandbox.bhts.dev

What the sandbox is

  • sandbox.bhts.dev runs the same software and database as production. Your sandbox account is a separate operator account, so test rounds never appear in your live figures, reports or tickets.
  • The sandbox has its own keys. Make them in the portal of your sandbox account.
  • Sim Studio is bhub’s built-in test studio, with three games: Sim Slot (96.5%), Sim Crash (97.0%) and Sim FreeSpins (96.0%). They are test only: never real money, and never in your figures. In the sandbox you need no studio account for them.
  • To test a real studio’s games, add your test connection with that studio on Studio connections.

The 34 automatic checks

9 groups, run in order. Most checks end by reconciling the player’s balance to the cent.

GroupChecksWhat it covers
basic6Authenticate and balance, stake then payout, bet_win, several payouts, a zero stake, end_round
promotions5Free spin payouts, a missing bonus reference, a stake on a free spin, promo_credit for a total and for a jackpot
rollback5Refund of a stake or a payout, of an unknown tx_id (tombstone), before the stake arrives, twice
idempotency2An identical repeat, and the same tx_id with a different body (DUPLICATE_CONFLICT)
faults5Timeouts, errors after your wallet booked, a payout that cannot be delivered, a payout after the round closed
refusals3Not enough money, a blocked player (not applicable without a blocked test player), a stake on a closed round
currency3A wrong currency, zero decimals (UGX), three decimals (TND). Without a test player in that currency the check is marked not applicable.
security4Bad signatures in both directions, a stale timestamp, a key rotation (needs a second test key)
detector1A deliberately wrong amount must be caught

The 10 000-round test

10 000 rounds across your test players, in your test wallet’s currencies. With faults on, slow answers, duplicate messages and late payouts are mixed in. At the end every test player’s balance is reconciled to the cent, and, if your wallet offers GET /v1/transactions, your records are compared with ours line by line. Each run has a seed: the same seed repeats the same run, so you can check a fix.

The integration certificate

A passing run produces a report and a certificate signed with bhub’s Ed25519 key. It names the wallet the run played against and how fast it answered (median, 95th and 99th percentile). The certificate covers the SHA-256 of the exact report, so anyone with bhub’s public key can check that neither was changed.

Which wallet the runs use

Each run gets its own short-lived sandbox account and plays against the wallet you pick in the portal:

  • Your own test wallet: your wallet in its test setup, on a public https address, with test keys (never your live keys) and test players you made and gave money to. Only these runs count toward going live.
  • bhub’s sample wallet, which implements the Seamless Wallet API exactly, to try the checks first. Its certificate says “sample wallet, not your integration”.

Every message carries X-Bhub-Environment: test; your live wallet must refuse it. Runs are paced (by default at most 100 calls a second, 16 at once). The trouble is caused on our side: we hold, delay or fail messages between bhub and your wallet, so your wallet needs no special test mode. A check that needs something you did not give us, such as a blocked test player or a second key, is marked not applicable and says why.

Talk to bhub

Tell us about your platform and the markets you serve.

We use these details only to answer you. Nothing is shared or sold. Read our privacy notice.