Skip to main content
Glama

Osmosis MCP Server

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

NameRequiredDescriptionDefault
contractAddressYesThe contract address to migrate
migrateMsgYesThe migration message as a JSON object
newCodeIdYesThe new code ID to migrate to
senderYesThe 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" }

Other Tools from Osmosis MCP Server

Related Tools

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/MyronKoch-dev/osmosis-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server