Validate swap inputs
plan_swapRead-onlyIdempotent
Optional, offline. Checks a partial request (direction, amount or receiveAmount, to) and returns the next question for the user. Skip it when you have what get_quote needs.
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. | |
| amount | No | What the user sends. | |
| detail | No | ||
| direction | No | u2x or x2u, as the user said it. | |
| receiveAmount | No | What the user wants to receive. |
Output Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | No | ||
| next | Yes | ||
| error | No | ||
| state | No | ||
| question | No | ||
| operation | Yes | ||
| userMessage | No | ||
| missingInputs | No | ||
| validationErrors | No |