Documentation

Opening Packs

How to Open packs

First, acquire a BoostPack (BTP) - the ERC-721 token that the specific "GumballMachine" contract accepts. You can mint one, buy one on the secondary market, or receive one from a friend. One BoostPack yields three cards once opened.

Call play() on the "GumballMachine" contract. The contract burns your BoostPack and starts the prize selection process. Prize selection is computed immediately from onchain entropy:

seed = keccak256(blockhash(block.number - 1), playerAddress, packSize, block.timestamp)

That seed selects 3 cards from the prizepool, transfers them to your address, and moves the round to Completed.

Note:

Prize selection currently uses onchain pseudo-randomness, but we are in the process of moving to Chainlink VRF.