Games
Games in the Carbium Library: 6 working Solana examples, among them Chain clock drift meter, Season pass progress tracker and Provable fairness verifier.
- Chain clock drift meter BI0148
Spec and runnable code for a meter that samples chain slots and block time against the wall clock, to time game rounds without seeding randomness from it.
- Season pass progress tracker BI0147
Spec and runnable code for a read-only season pass board showing supply, days into the season and pass-mint activity, over one Carbium key.
- Provable fairness verifier BI0144
Spec and runnable check for a provably fair game round: it verifies a seed commitment and a reveal slot's blockhash with two reads and no signing.
- NFT trait battle game BI0083
Spec and code for a two-NFT battle game: stats come from the mint and its metadata account, and a finalized blockhash rolls the fight.
- Blockhash raffle draw BI0035
Spec and runnable code for a raffle that fixes a future slot in advance, then ranks entries by that finalized block's hash so anyone can rerun the draw.
- Live chain-state game BI0009
Spec and runnable code for a game that takes its turns from mainnet slots and its world from account state, using one WebSocket and one batched read.