join-swap-share-amount-out
Calculate token input needed to receive exact LP shares in Osmosis pools. Specify maximum token amount and get precise swap parameters for liquidity provision.
Instructions
Join pool by specifying exact LP shares to receive
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mnemonic | Yes | BIP-39 mnemonic phrase for signing the transaction | |
| poolId | Yes | Pool ID to join | |
| tokenInDenom | Yes | Denomination of token to swap in | |
| shareOutAmount | Yes | Exact LP shares to receive | |
| tokenInMaxAmount | Yes | Maximum token amount to swap in | |
| gas | No | Gas limit (default: auto-estimate) | |
| gasPrice | No | Gas price (default: 0.025uosmo) | |
| memo | No | Transaction memo |