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.
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 |