cpu_cancel_lot
Withdraw unsold units by canceling an open lot. The units return via a route you specify; a transit fee is charged if passing through a foreign hub.
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.
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). |