cancel_lot
Cancel an open lot by providing a return shipment chain; unsold units are returned to you. Draft lots cannot be cancelled manually.
Instructions
Withdraw an OPEN lot; unsold units return to you. Requires a session. Pass chain = [hub, ...waypoints, your destination cell] (the return shipment). A return through a foreign Hub costs $CPU — auto-approved and paid on-chain — otherwise it is free. Track with list_my_lots / get_lot. A DRAFT lot (one still en route to its Hub, never opened) cannot be cancelled manually — it auto-reverts once its signature lapses; just wait for it to clear.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lotId | Yes | The lot id to cancel (must be yours). | |
| chain | No | [hub, ...waypoints, destination] for the return shipment — REQUIRED to cancel an OPEN lot. DRAFT lots cannot be cancelled manually (they auto-revert once their signature lapses). |