tapp_swap_amm
Use this tool to execute token swaps on Automated Market Maker (AMM) pools on the Aptos blockchain. Specify pool address, swap direction, and token amounts to trade assets efficiently.
Instructions
Execute a swap on an AMM pool
Input Schema
Name | Required | Description | Default |
---|---|---|---|
a2b | Yes | Direction of the swap; true for token A to B, false for B to A | |
amount0 | Yes | Amount of token A | |
amount1 | Yes | Amount of token B | |
fixedAmountIn | No | Whether the input amount is fixed (defaults to true) | |
poolId | Yes | The address of the pool in which the swap is performed |