How to fund a swap
get_funding_optionsRead-onlyIdempotent
Offline. How to get what the user sends: native USDC (not USDC.e) plus a little ETH for gas on Arbitrum One (u2x, default), or XMR in their own wallet (x2u). Pass from {chain, asset} (and amount) for one ordered checklist: quote, fund, re-quote (requoteOf).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | No | Where the funds are now. | |
| amount | No | Send amount from a quote, if known. | |
| detail | No | ||
| direction | No | u2x (default): the user sends USDC. x2u: XMR. |
Output Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | No | ||
| next | Yes | ||
| error | No | ||
| route | No | ||
| state | No | ||
| matched | No | ||
| checklist | No | ||
| direction | No | ||
| operation | Yes | ||
| userMessage | No |