Swap quote and unsigned transaction (Chord)
chord_swap_quoteBest swap route from Chord (getchord.xyz) across the DEXs of the chain, with the UNSIGNED transaction to sign, the ERC-20 approval it needs (as a ready transaction) and a simulation run from the taker wallet. Amounts are integer strings in the token's smallest unit; the zero address is the native coin. Nothing is sent: sign with your own key, then send_raw_transaction.
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": {
"chain": "<chain>",
"tokenIn": "<tokenIn>",
"tokenOut": "<tokenOut>",
"amount": "<amount>"
},
"name": "chord_swap_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | Yes | Chord chain key. | |
| taker | No | The wallet that will sign. With it the answer carries tx + approval + a simulation from that wallet. | |
| amount | Yes | Amount of tokenIn in its smallest unit, e.g. '10000000' = 10 USDC. | |
| tokenIn | Yes | Token sold (zero address = native coin). | |
| tokenOut | Yes | Token bought (zero address = native coin). | |
| slippageBps | No | Slippage in basis points (default 50). |