set-pool-weights
Update weights for a balancer pool on Osmosis using governance proposals. Input pool ID, assets, and mnemonic to sign the transaction.
Instructions
Set new weights for a balancer pool (governance)
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 | |
poolAssets | Yes | New pool assets with weights | |
poolId | Yes | Pool ID to update |
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"
},
"poolAssets": {
"description": "New pool assets with weights",
"items": {
"properties": {
"token": {
"properties": {
"amount": {
"type": "string"
},
"denom": {
"type": "string"
}
},
"required": [
"denom",
"amount"
],
"type": "object"
},
"weight": {
"type": "string"
}
},
"required": [
"token",
"weight"
],
"type": "object"
},
"type": "array"
},
"poolId": {
"description": "Pool ID to update",
"type": "string"
}
},
"required": [
"mnemonic",
"poolId",
"poolAssets"
],
"type": "object"
}