cpu_cancel_lot
Cancel an open lot to return unsold units on-chain. Provide a return shipment chain; transit fee applies for foreign hubs. Units credited after finalizing delivery.
Instructions
Withdraw an OPEN lot; the unsold units return to you, on-chain. Requires a session. Pass chain = [hub, ...waypoints, your destination cell] for the return shipment (required). One atomic tx: a return through a foreign Hub costs a $CPU transit fee (auto-approved), otherwise it is free; you also pay gas. The units ship back and are credited only after they arrive and you cpu_finalize_delivery on the returned deliveryId. Track with cpu_list_my_lots / cpu_get_lot.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"lotId": "<lotId>",
"chain": "<chain>"
},
"name": "cpu_cancel_lot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | Yes | Waypoint tokenIds [hub, ...waypoints, destination] for the return shipment — first node is the lot Hub, last is your own revealed cell where the unsold units return. A route through a foreign Hub is paid in $CPU. | |
| lotId | Yes | The lot id to cancel (must be yours). |