prepare-migrate-contract
Prepare a transaction to migrate a smart contract to new code on the Osmosis blockchain. Specify sender, contract address, new code ID, and migration message to ensure proper execution.
Instructions
Prepares a transaction to migrate a contract to new code
Input Schema
Name | Required | Description | Default |
---|---|---|---|
contractAddress | Yes | The contract address to migrate | |
migrateMsg | Yes | The migration message as a JSON object | |
newCodeId | Yes | The new code ID to migrate to | |
sender | Yes | The sender's Osmosis address (must be admin) |
Input Schema (JSON Schema)
{
"properties": {
"contractAddress": {
"description": "The contract address to migrate",
"type": "string"
},
"migrateMsg": {
"description": "The migration message as a JSON object",
"type": "object"
},
"newCodeId": {
"description": "The new code ID to migrate to",
"type": "number"
},
"sender": {
"description": "The sender's Osmosis address (must be admin)",
"type": "string"
}
},
"required": [
"sender",
"contractAddress",
"newCodeId",
"migrateMsg"
],
"type": "object"
}