prepare-exit-pool
Generate an unsigned transaction to exit a liquidity pool on Osmosis by specifying the pool ID, sender address, LP shares amount, and minimum token outputs.
Instructions
Prepares an unsigned transaction to exit a pool
Input Schema
Name | Required | Description | Default |
---|---|---|---|
poolId | Yes | The ID of the liquidity pool | |
sender | Yes | The sender's Osmosis address | |
shareInAmount | Yes | Amount of LP shares to redeem | |
tokenOutMins | Yes | Minimum amounts of each token to receive |
Input Schema (JSON Schema)
{
"properties": {
"poolId": {
"description": "The ID of the liquidity pool",
"type": "string"
},
"sender": {
"description": "The sender's Osmosis address",
"type": "string"
},
"shareInAmount": {
"description": "Amount of LP shares to redeem",
"type": "string"
},
"tokenOutMins": {
"description": "Minimum amounts of each token to receive",
"items": {
"properties": {
"amount": {
"description": "Minimum amount to receive",
"type": "string"
},
"denom": {
"description": "Token denomination",
"type": "string"
}
},
"required": [
"denom",
"amount"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"poolId",
"sender",
"shareInAmount",
"tokenOutMins"
],
"type": "object"
}