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 |
Input Schema (JSON Schema)
{
"properties": {
"amount": {
"description": "Amount to swap",
"type": "string"
},
"poolId": {
"description": "The ID of the liquidity pool",
"type": "string"
},
"tokenIn": {
"description": "Input token denomination",
"type": "string"
},
"tokenOut": {
"description": "Output token denomination",
"type": "string"
}
},
"required": [
"poolId",
"tokenIn",
"tokenOut",
"amount"
],
"type": "object"
}