craft
Run a recipe on a cell you own to refine resources or forge tokens. Inputs debited upfront; free recipes start immediately, paid ones require on-chain payment.
Instructions
Run a craft recipe on a cell you own (refine raw resources, or forge $WCPU). Requires a session — call authenticate first; discover recipes with list_recipes. Inputs are debited upfront for all batches. Most recipes are free and start their timer immediately; forge_wcpu costs $CPU, which this tool auto-approves once (a one-time unbounded allowance) before submitting the on-chain payment and waiting for its confirmation — its timer then starts once the indexer settles the payment a few seconds later. Track progress with get_craft_status and bank matured batches with claim_craft.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tokenId | Yes | The tokenId of a cell you own to craft on. | |
| recipeId | Yes | Which recipe to run — see list_recipes for inputs/outputs/cost. | |
| batches | No | How many sequential batches to run; inputs are debited upfront for all of them. |