Get cross-chain swap quotes
get_quoteGet live quotes for swapping one asset to another (cross-chain or same-chain). Returns routes ranked by amount received, each with a quoteToken, the executing protocol, expectedReceive, minimumReceived and estimated time. All fees (network, protocol and platform) are included.
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": {
"sellAssetId": "<sellAssetId>",
"buyAssetId": "<buyAssetId>",
"sellAmount": "<sellAmount>"
},
"name": "get_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slippage | No | Maximum slippage in percent. Default 1.5. | |
| providers | No | Optional: only return routes from these provider ids, e.g. ["NEAR", "FLASHNET"]. From list_providers. | |
| buyAssetId | Yes | Asset to receive, e.g. "ethereum-eth". From list_assets. | |
| sellAmount | Yes | Amount to send as a decimal string in the sell asset's units, e.g. "0.05". | |
| sellAssetId | Yes | Asset to send, e.g. "bitcoin-btc". From list_assets. |