exit-swap-extern-amount-out
Calculate and execute a pool exit on Osmosis by specifying the exact amount of a token to receive, burning LP shares within a set maximum.
Instructions
Exit pool by specifying exact token amount to receive
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>",
"tokenOut": "<tokenOut>",
"shareInMaxAmount": "<shareInMaxAmount>"
},
"name": "exit-swap-extern-amount-out"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mnemonic | Yes | BIP-39 mnemonic phrase for signing the transaction | |
| poolId | Yes | Pool ID to exit | |
| tokenOut | Yes | Token to receive | |
| shareInMaxAmount | Yes | Maximum LP shares to burn | |
| gas | No | Gas limit (default: auto-estimate) | |
| gasPrice | No | Gas price (default: 0.025uosmo) | |
| memo | No | Transaction memo |