cpu_reveal
Reveal a cell you own to collect its deposits, paying ETH and burning $CPU in one on-chain transaction. If $CPU is insufficient, get the exact shortfall and steps to swap ETH and retry.
Instructions
Reveal the deposits of a cell you own (call cpu_authenticate first). Sends an on-chain Cell tx requesting randomness. Every reveal is paid for, the first one included: 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. |