join-swap-share-amount-out
Calculate the required token amount to join a liquidity pool and receive exact LP shares, ensuring precise asset allocation on the Osmosis blockchain.
Instructions
Join pool by specifying exact LP shares to receive
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 join | |
shareOutAmount | Yes | Exact LP shares to receive | |
tokenInDenom | Yes | Denomination of token to swap in | |
tokenInMaxAmount | Yes | Maximum token amount to swap in |
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 join",
"type": "string"
},
"shareOutAmount": {
"description": "Exact LP shares to receive",
"type": "string"
},
"tokenInDenom": {
"description": "Denomination of token to swap in",
"type": "string"
},
"tokenInMaxAmount": {
"description": "Maximum token amount to swap in",
"type": "string"
}
},
"required": [
"mnemonic",
"poolId",
"tokenInDenom",
"shareOutAmount",
"tokenInMaxAmount"
],
"type": "object"
}