Gaming
Gaming in the Carbium Library: 6 working Solana examples, among them Commit-reveal match audit, Player deposit balance sync and Match start chain health gate.
- Commit-reveal match audit UC0130
Read a commit-reveal program's newest transactions, label each phase and flag matches whose commit, reveal and settle landed out of order.
- Player deposit balance sync UC0129
Keep an in-game deposit balance in step with the chain after one login signature: finalized reads, signature cursors, subscription triggers and costs.
- Match start chain health gate UC0127
Check chain health, slot progress, finalization lag and round trip from your game server before a match starts, with a read-only Node script.
- Randomness fulfilment monitor UC0126
Check if a randomness request was fulfilled: newest good and failed transactions on its account, their age and a data fingerprint, in a Node script.
- Game prize pool tracker UC0047
Read a game prize pool's SOL balance, its payable prize and recent deposits and payouts from Solana, with a Node script and the call costs.
- Game state and player items UC0010
Read player items and game state from Solana in one consistent call: costs, commitment choice, and a Node snapshot script that reports what changed.