transaction_same_chain_swap
Create a same-chain token swap transaction via deBridge
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chainId | Yes | Chain ID (native or deBridge internal) | |
| tokenIn | Yes | Input token address | |
| slippage | No | Slippage tolerance or 'auto' | |
| tokenOut | Yes | Output token address | |
| senderAddress | No | Transaction submitter address | |
| tokenInAmount | Yes | Amount in smallest units | |
| tokenOutAmount | No | Expected output amount or 'auto' | |
| tokenOutRecipient | Yes | Address on the source chain to receive target tokens | |
| affiliateFeePercent | No | Affiliate fee percentage | |
| affiliateFeeRecipient | No | Wallet address to receive affiliate fees | |
| srcChainPriorityLevel | No | Priority level: 'normal' or 'aggressive' (default: 'normal') |