Get XMR/USDC swap quote
get_quoteRead-onlyIdempotent
Step 1. Quote Monero (XMR) <-> native USDC on Arbitrum One; no account or API key. Creates no order. Quotes are estimates. Buy XMR ("get me 1 XMR"): {direction:"u2x", receiveAmount:"1"}. Sell XMR: {direction:"x2u", amount:"0.5"}. direction plus exactly one of amount (what the user sends) or receiveAmount (what they want). Pass to if known. Next: create_swap with next.arguments.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Destination from the user: x2u an Arbitrum One 0x address, u2x a Monero address. Never guess. | |
| basis | No | receiveAmount met by the estimate (default) or the provider minimum (if published). | |
| chain | No | Default arbitrum (42161). | |
| amount | No | What the user SENDS (x2u: XMR, u2x: USDC). Digits and one dot; no commas or units. | |
| detail | No | ||
| agentKey | No | Optional key from request_agent_key. | |
| direction | No | Required. u2x: send USDC, get XMR. x2u: send XMR, get USDC. | |
| requoteOf | No | Re-quote this quoteId's stored parameters; pass it alone. | |
| receiveAmount | No | What the user wants to RECEIVE (u2x: XMR, x2u: USDC); needs direction. |
Output Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | No | ||
| next | Yes | ||
| delta | No | ||
| error | No | ||
| quote | No | ||
| state | No | ||
| target | No | ||
| quoteId | No | ||
| agentKey | No | ||
| direction | No | ||
| operation | Yes | ||
| guaranteed | No | ||
| acceptUntil | No | ||
| destination | No | ||
| userMessage | No | ||
| expiresInSec | No | ||
| prerequisites | No | ||
| minimumSwapUsd | No | ||
| acceptWindowSec | No | ||
| belowProviderMinimum | No |