BSC Dice — Auto-Settle with Auto-Play

BSC Dice

49.50
Chance 49.50%
Payout 2.00×

Show Bet History

Bet History

ID Start (+offset) Direction Blocks Used Status Roll P/L Verify

Live TX Hashes

#BlockTransaction Hash
1
2
3
4
5

Client Seed (required)

Manual Verifier

Roll:

How to play

  • Enter Amount, choose Direction (Under/Over), set Target, and enter a Client Seed (required).

  • Click Place Bet. You’ll see the start block and your offset; the game auto-settles when the chain reaches the required confirmations.

  • When settled, click Verify to auto-paste the used hashes into the manual verifier and recompute the roll yourself.

How results are calculated (exact)

Parameters:
BASE_DELAY=20, OFFSET_SPAN=7, N_BLOCKS=5, MAX_LOOKAHEAD=20, CONFIRMATIONS=12, QUORUM=3.

  1. Commit (at bet time)

  • baseBlock = current chain height

  • startBlock = next unique block ≥ baseBlock + BASE_DELAY

  • offset = SHA-256(clientSeed | betId | baseBlock) % OFFSET_SPAN

  • Window = blocks [startBlock + offset, ..., startBlock + offset + MAX_LOOKAHEAD]

  1. Collect hashes (after window mined)

  • Scan the window; skip empty blocks.

  • For each non-empty block, take the last transaction hash (not the block hash).

  • Stop after N_BLOCKS = 5 hashes are collected.

  • For each block, require QUORUM = 3 independent RPCs to agree on the block data.

  • Wait CONFIRMATIONS = 12 blocks after the last used block.

  1. Roll

  • Let h1..h5 be the 5 tx hashes (hex without 0x).

  • digest = SHA-256(h1 || h2 || h3 || h4 || h5) (hex as big-int).

  • roll = (digest % 10000) / 1000–99.99.

  1. Win/Loss

  • Under: win if roll < target.

  • Over: win if roll ≥ target.

  • Payout multiplier shown = (1 / winChance) × (1 − 0.01) (1% house edge).

Why this is provably fair

  • No server seed: randomness comes from future on-chain tx hashes you and the house can’t know at bet time.

  • Client-seeded offset: your client seed deterministically shifts the start of the window; you can recompute it.

  • Multiple blocks: using 5 independent blocks prevents single-block manipulation.

  • Last-tx only: prevents cherry-picking within a block.

  • Empty-block skip: avoids weaker block-hash fallback.

  • Confirmations + quorum: 12 confs and 3 RPCs reduce reorg/RPC bias.

  • Unique start per pending bet and single active bet: avoids result correlation and race conditions.

How to verify (step-by-step)

  1. After settlement, click Verify on the bet row — it fills the Manual Verifier with the 5 tx hashes.

  2. Press Compute Roll. The displayed roll must match your bet’s roll.

  3. Optionally, open each tx on BscScan (paste any hash) to confirm block numbers match the Blocks Used shown.

  4. Recreate: compute offset from your noted Client Seed, Bet ID, and baseBlock; confirm the derived window covers the Blocks Used.

What you can check yourself

  • The Client Seed you entered.

  • The displayed start block, offset, and blocks used.

  • The 5 tx hashes.

  • The recomputed roll from the hashes.