loot_open_box
Open a loot box by spending one key and a slice of the pile, settle on-chain after the drand beacon to mint loot.
Instructions
Open loot boxes: spends one key of the chosen tier plus a slice of the unopened box pile now, waits for the pinned drand round, fetches the public beacon, and settles on-chain. Key source auto prefers a token-scoped key and falls back to a universal key. Reports the settled tier counts and loot minted. Needs LOOT_AGENT_PRIVATE_KEY.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tier | No | ||
| token | Yes | ||
| key_source | No |