join-swap-extern-amount-in
Swap a specific token amount to join an Osmosis liquidity pool and receive LP shares, ensuring minimum share output.
Instructions
Join pool by swapping exact amount in
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>",
"tokenIn": "<tokenIn>",
"shareOutMinAmount": "<shareOutMinAmount>"
},
"name": "join-swap-extern-amount-in"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mnemonic | Yes | BIP-39 mnemonic phrase for signing the transaction | |
| poolId | Yes | Pool ID to join | |
| tokenIn | Yes | Token to swap in | |
| shareOutMinAmount | Yes | Minimum LP shares to receive | |
| gas | No | Gas limit (default: auto-estimate) | |
| gasPrice | No | Gas price (default: 0.025uosmo) | |
| memo | No | Transaction memo |