Provably Fair by Design
Every round outcome is derived on-chain by the random-generator contract's commit-reveal scheme: the oracle's seed is hashed and committed before your bet, and the result follows from that seed and the round id alone.
A decentralized, provably fair gaming ecosystem built natively on Stellar and Soroban. Engineered for complete transparency, instant settlement, and non-custodial play.
How StellarCade guarantees trustless fairness and player sovereignty across all game modes.
Every round outcome is derived on-chain by the random-generator contract's commit-reveal scheme: the oracle's seed is hashed and committed before your bet, and the result follows from that seed and the round id alone.
We never take custody of your keys or funds. Connect your self-custodied Freighter wallet and sign transactions only when initiating rounds or claiming prizes.
Built directly on Stellar's Soroban smart contract platform, enabling 5-second ledger closes and fractions of a cent per transaction without layer-2 complexity.
Tournament prize pools and daily quest rewards are held in smart contracts and distributed automatically according to immutable rules.
Commit-reveal, exactly as the random-generator and coin-flip contracts implement it.
Before any bet exists, the oracle publishes sha256(seed) to the random-generator contract. The seed itself stays hidden — SHA-256 cannot be reversed to recover it.
place_bet pops the oldest commitment from the on-chain queue and binds it to your game id in the same transaction. With an empty queue the bet fails, so no round runs without a commitment.
fulfill_random re-hashes the revealed seed and rejects it unless it equals the commitment, then computes sha256(seed ‖ round id) — first 8 bytes as big-endian, mod 2. 0 is Heads, 1 is Tails.
Open the verifier with a round id: it reruns the contract's exact formula in your browser and checks the seed, the commitment and the stored result. No server involved.
Commit-reveal fixes the seed before your bet; it cannot force the oracle to reveal it. A round the oracle never fulfils stays pending — after RefundTimeoutLedgers (17,280 ledgers, about 24 hours) you call cancel_stale_bet to reclaim your full wager, and a refunded game can never be resolved afterwards, so you get a refund or a payout, never both. The oracle also knows the seeds it commits; only SHA-256 preimage resistance keeps them secret from everyone else.
The four specialized codebases that comprise the open-source StellarCade ecosystem.
The full Next.js frontend experience and comprehensive Rust Soroban smart contract catalog powering on-chain arcade rooms, game logic, and prize vaults.
Universal TypeScript SDK providing client-side WebCrypto fairness verification, Freighter wallet connectors, RPC helpers, and typed game APIs.
Deterministic off-chain settlement service managing commit-reveal cycles, ledger hash commitments, and hash-chained dispute resolution audit trails.
Automated chat interfaces supporting non-custodial Ed25519 challenge-response wallet linking, real-time leaderboard queries, and quest tracking.