cpu_reveal
Reveals the deposits of a cell you own on-chain by requesting randomness; authenticate first, then pay the quoted ETH and approved $CPU burn.
Instructions
Reveal the deposits of a cell you own (call cpu_authenticate first). Sends an on-chain Cell tx requesting randomness. The first completed reveal of each cell costs no CPU; later reveals burn the configured CPU. The cell quotes the price and this call pays exactly that — ETH with the transaction, so keep some, plus a $CPU burn it approves for you. Revealing a cell a second time additionally needs all its deposits depleted. How the draw arrives depends on the network’s randomness mode — see cpu_get_game_config. On a self-service network this call also settles the draw and returns the deposits it rolled; call it again on a cell whose reveal is still pending to finish that one, which pays for no second reveal. If the wallet lacks the quoted $CPU, this call sends no approval or reveal, reports the exact shortfall, and gives the recovery path: cpu_quote_swap, then cpu_swap selling ETH, then retry cpu_reveal so the price is quoted again.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tokenId | Yes | The tokenId of a cell you own to reveal. |