Get a Mayan cross-chain swap quote
get_quoteQuote a cross-chain swap through Mayan Finance. See expected output, slippage floor, fees, and ETA for every route; no transaction is built.
Instructions
Quote a cross-chain swap through Mayan Finance. Returns every available route with the expected output, the guaranteed minimum after slippage, fees and ETA. Read-only: this builds nothing and moves nothing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Human-readable amount of the source token, as a decimal string. Example: "0.5". | |
| to_chain | Yes | Destination chain. | |
| to_token | Yes | Token symbol (resolved against Mayan's verified token list), an exact token address, or "native". | |
| from_chain | Yes | Source chain. | |
| from_token | Yes | Token symbol (resolved against Mayan's verified token list), an exact token address, or "native". | |
| slippage_bps | No | Slippage tolerance in basis points (1 bp = 0.01%). Mayan caps this at 500 (5%). "auto" lets Mayan choose. | auto |
| destination_address | No | Recipient address on the destination chain. Optional, but improves quote accuracy on Solana. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| routes | Yes | Available routes, best first. | |
| to_token | Yes | ||
| from_token | Yes | ||
| route_count | Yes | ||
| amount_in_base_units | Yes |