exit-swap-share-amount-in
Calculate token amounts received when burning exact LP shares to exit an Osmosis liquidity pool, ensuring minimum output thresholds are met.
Instructions
Exit pool by burning exact LP shares
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"mnemonic": "<mnemonic>",
"poolId": "<poolId>",
"tokenOutDenom": "<tokenOutDenom>",
"shareInAmount": "<shareInAmount>",
"tokenOutMinAmount": "<tokenOutMinAmount>"
},
"name": "exit-swap-share-amount-in"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mnemonic | Yes | BIP-39 mnemonic phrase for signing the transaction | |
| poolId | Yes | Pool ID to exit | |
| tokenOutDenom | Yes | Denomination of token to receive | |
| shareInAmount | Yes | Exact LP shares to burn | |
| tokenOutMinAmount | Yes | Minimum token amount to receive | |
| gas | No | Gas limit (default: auto-estimate) | |
| gasPrice | No | Gas price (default: 0.025uosmo) | |
| memo | No | Transaction memo |