exit-swap-share-amount-in
Calculate and execute the exit of a liquidity pool by burning exact LP shares to receive specified tokens on the Osmosis blockchain.
Instructions
Exit pool by burning exact LP shares
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gas | No | Gas limit (default: auto-estimate) | |
| gasPrice | No | Gas price (default: 0.025uosmo) | |
| memo | No | Transaction memo | |
| mnemonic | Yes | BIP-39 mnemonic phrase for signing the transaction | |
| poolId | Yes | Pool ID to exit | |
| shareInAmount | Yes | Exact LP shares to burn | |
| tokenOutDenom | Yes | Denomination of token to receive | |
| tokenOutMinAmount | Yes | Minimum token amount to receive |
Input Schema (JSON Schema)
{
"properties": {
"gas": {
"description": "Gas limit (default: auto-estimate)",
"type": "string"
},
"gasPrice": {
"description": "Gas price (default: 0.025uosmo)",
"type": "string"
},
"memo": {
"description": "Transaction memo",
"type": "string"
},
"mnemonic": {
"description": "BIP-39 mnemonic phrase for signing the transaction",
"type": "string"
},
"poolId": {
"description": "Pool ID to exit",
"type": "string"
},
"shareInAmount": {
"description": "Exact LP shares to burn",
"type": "string"
},
"tokenOutDenom": {
"description": "Denomination of token to receive",
"type": "string"
},
"tokenOutMinAmount": {
"description": "Minimum token amount to receive",
"type": "string"
}
},
"required": [
"mnemonic",
"poolId",
"tokenOutDenom",
"shareInAmount",
"tokenOutMinAmount"
],
"type": "object"
}