estimate-swap
Calculate the expected outcome of a token swap on the Osmosis blockchain by specifying the pool ID, input token, output token, and swap amount.
Instructions
Estimates the result of a token swap
Input Schema
Name | Required | Description | Default |
---|---|---|---|
amount | Yes | Amount to swap | |
poolId | Yes | The ID of the liquidity pool | |
tokenIn | Yes | Input token denomination | |
tokenOut | Yes | Output token denomination |