Get a cross-chain swap quote
get_quoteLive price for swapping any token to any token across 25+ chains (BTC, ETH, SOL, Base, Arbitrum, BNB, Tron, NEAR, Zcash, TON, Sui, XRP...). No addresses or keys needed, nothing committed. Includes a price_check against market rates and a best_price_check that quotes a competing network (Relay) at the same moment, so you can see proof you are getting the better deal.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"from_token": "<from_token>",
"to_token": "<to_token>",
"amount": "<amount>"
},
"name": "get_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Amount of from_token to send, as a human-readable decimal string, e.g. '25' or '0.015'. Not base units. | |
| referrer | No | Optional: your NEAR account (e.g. 'myagent.near'). You earn 1/3 of the service fee on every swap routed with it. The user pays the same. | |
| to_chain | No | Chain to receive on. | |
| to_token | Yes | Token to receive (same formats as from_token). | |
| recipient | No | Optional (with refund_address): destination address, for an exact quote. | |
| from_chain | No | Chain the token is sent from, e.g. 'solana', 'base', 'ethereum', 'bitcoin'. Needed when the symbol exists on several chains. | |
| from_token | Yes | Token to send: symbol ('USDC', 'ETH', 'BTC'), 'SYMBOL@chain', 'SYMBOL on chain', or an asset_id from search_tokens. | |
| slippage_bps | No | Max slippage in basis points (default 100 = 1%, range 10-500). | |
| refund_address | No | Optional (with recipient): refund address on the source chain. |