build
Place an extractor or hub structure on your owned land cell to mine resources or enable trading. Automatic $CPU payment.
Instructions
Place a building on a revealed Land cell you own. Requires a session — call authenticate first. Two types: extractor (mines a resource deposit — pass the targetResourceId of a resource that has an active deposit on the cell) and hub (trade — pass targetResourceId: null). Build always costs $CPU, which this tool auto-approves once (a one-time unbounded allowance) before submitting the on-chain payment and waiting for its confirmation. The building is applied by the indexer a few seconds later; an extractor then starts mining automatically — track it with get_mining_status. Inspect the cell with get_cell.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tokenId | Yes | The tokenId of a revealed cell you own to build on. | |
| buildingType | Yes | extractor (mines a resource deposit) or hub (trade). | |
| targetResourceId | No | For an extractor, the resource id (2–13) to mine — it must have an active deposit on the cell. Must be null for a hub. |