tapp_get_swap_estimate
Calculate the estimated input or output amount for a token swap on Tapp Exchange, specifying pool, token pair, direction, and amount type.
Instructions
Estimate the amount received or needed for a swap on Tapp Exchange
Input Schema
Name | Required | Description | Default |
---|---|---|---|
a2b | Yes | Swap direction - true for token at pair[0] to pair[1], false for pair[1] to pair[0] | |
amount | Yes | The amount for estimation (used as input or desired output depending on field) | |
field | No | Indicates if amount is an 'input' or 'output' amount (defaults to 'input') | |
pair | Yes | A tuple of token indexes to swap, e.g., [0, 1] means token at index 0 is being swapped for token at index 1 | |
poolId | Yes | The identifier of the pool |