cpu_quote_buy
Preview the total cost of buying units from a lot without reserving or sending a transaction. Estimate includes seller price and optional transit fees based on destination.
Instructions
Preview the cost of buying from a lot — read-only, reserves nothing, sends no tx (needs a session). Pass chain = [hub, ...waypoints, your destination cell] for the exact total cpu_buy_lot would charge; omit it for a seller-only estimate (pricePerUnit × value). Returns decimal $CPU: sale (value × pricePerUnit, exact) + transitFee, summed as total. cpu_buy_lot re-quotes transit on-chain, so that part can move slightly and it authorizes ~10% over as headroom (a ceiling, not an extra charge). Use before cpu_buy_lot.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | Waypoint tokenIds [hub, ...waypoints, destination] to include transit fees (the exact total buy_lot would charge); omit for a seller-only estimate (price × value). | |
| lotId | Yes | The lot id to preview a buy on. | |
| value | Yes | Units to buy, as a positive integer string. |