Realtime (preferred)
TypeScript
Poll fallback
If you can’t hold a socket open, pollbetResult (single) or betResults (batch, max 25 ids) - same payload shape. See GraphQL - betResult.
The update payload
Key fields of abets:update (integers are decimal strings):
Handling proof: null
The API always attempts a proof, but delivers the result either way. When proof is null:
- Treat the result as optimistic display only - you cannot
claimBetWithProofyet. - Wait for the epoch to close and the seed to reveal, then use plain
claimBet(it settles from the revealed seed and claims in one transaction), or keep pollingbetResult.
Onward
- Claiming - turning a won result into a payout
- Provably fair - verifying
entropyagainst the commitment yourself