Build swap transaction
chord_swap_txThe UNSIGNED transaction for a swap, plus the approval it needs and a simulation run as the taker. Nothing is sent: the taker's own wallet signs and broadcasts. Pass a quoteId from chord_quote, or the full parameters.
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": {
"taker": "<taker>"
},
"name": "chord_swap_tx"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | EVM chain key. Solana swaps are REST only: GET /v1/sol/trade/quote. | |
| taker | Yes | The wallet that signs and receives. | |
| amount | No | ||
| quoteId | No | ||
| tokenIn | No | Token address: 0x… on EVM chains, the base58 mint on Solana (case-sensitive). | |
| tokenOut | No | Token address: 0x… on EVM chains, the base58 mint on Solana (case-sensitive). | |
| slippageBps | No |