get_quote
Get a quote for a swap (onramp quotes are signed by the API). Pass the returned object
unchanged to create_order.
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": {
"src_chain": "<src_chain>",
"dst_chain": "<dst_chain>",
"src_token": "<src_token>",
"dst_token": "<dst_token>",
"amount": "<amount>",
"recipient": "<recipient>"
},
"name": "get_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Amount to swap as an integer string in the source token's smallest unit | |
| sender | No | Address sending the funds, encoded for the source chain. On onramps it lets create-order return a funded PSBT, which may spend the address's ordinals, inscriptions or runes as plain sats: omit it for an address holding any. | |
| slippage | No | Slippage tolerance in basis points (max 1000). Omit to let the gateway pick one per route. | |
| dst_chain | Yes | Destination chain | |
| dst_token | Yes | Destination token address; "0x0000000000000000000000000000000000000000" for BTC/native | |
| recipient | Yes | Address receiving the funds, encoded for the destination chain | |
| src_chain | Yes | Source chain, e.g. "bitcoin", "ethereum", "base", "bob", "tron" | |
| src_token | Yes | Source token address; "0x0000000000000000000000000000000000000000" for BTC/native | |
| affiliates | No | Affiliate fees as comma-separated `<address>:<bps>` pairs, e.g. "0xabc...:50". Addresses are EVM, except on a token swap to Tron, where a Tron address is also accepted. | |
| refund_address | No | Refund address on the source chain. Optional here, required by create-order. |