stable-swap
Efficiently swap stable assets on Osmosis by specifying the pool ID, input token, and desired output token. Includes gas settings and transaction memo for custom configurations.
Instructions
Perform a stable asset swap
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 | Stable swap pool ID | |
tokenIn | Yes | Token to swap | |
tokenOutDenom | Yes | Denomination of token to receive | |
tokenOutMinAmount | Yes | Minimum amount of token to receive |
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": "Stable swap pool ID",
"type": "string"
},
"tokenIn": {
"description": "Token to swap",
"properties": {
"amount": {
"type": "string"
},
"denom": {
"type": "string"
}
},
"required": [
"denom",
"amount"
],
"type": "object"
},
"tokenOutDenom": {
"description": "Denomination of token to receive",
"type": "string"
},
"tokenOutMinAmount": {
"description": "Minimum amount of token to receive",
"type": "string"
}
},
"required": [
"mnemonic",
"poolId",
"tokenIn",
"tokenOutDenom",
"tokenOutMinAmount"
],
"type": "object"
}