swap_tokens
Swap tokens directly on SailFish DEX by specifying input and output token addresses, amount, and slippage tolerance. Use a private key for wallet authentication and set fee tiers for transactions.
Instructions
Swap tokens on SailFish DEX (token to token)
Input Schema
Name | Required | Description | Default |
---|---|---|---|
amountIn | Yes | Amount of input token to swap | |
fee | No | Fee tier (100=0.01%, 500=0.05%, 3000=0.3%, 10000=1%) | |
privateKey | Yes | Private key of the sender wallet | |
slippagePercentage | No | Slippage tolerance percentage (default: 0.5) | |
tokenIn | Yes | Address of the input token | |
tokenOut | Yes | Address of the output token |