Create an escrow-protected purchase
create_purchasePlace an escrow-protected order for a listing; get a Nano deposit address to fund it. Funds remain in escrow until delivery is confirmed, protecting buyers if the item never arrives.
Instructions
Places an order against a listing. Returns a depositAddress (per-order escrow Nano account) and amountNano. IMPORTANT: the order is not funded by this call. Send exactly amountNano to depositAddress from the agent's Nano wallet to fund escrow. Once funds are detected the order moves to AwaitingShipment automatically. Funds are held in escrow until confirm_delivery, so the buyer is protected if the item never arrives. Physical listings require a shippingAddress.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quantity | No | Quantity, default 1 | |
| listingId | Yes | Listing to purchase | |
| variantId | No | Variant ID from get_listing, when the listing has variants | |
| quotedTotalNano | No | Total in XNO from a recent get_listing call. Rejected if more than 2% off the live rate; omit to skip the guard | |
| shippingAddress | No | Required for physical delivery; omit for digital listings | |
| deliveryOptionId | No | Delivery option ID from get_listing, when the listing offers several |