Skip to main content
Glama

prepare-migrate-contract

Prepare a transaction to migrate a smart contract to new code on the Osmosis blockchain by specifying the contract address, new code ID, and migration message.

Instructions

Prepares a transaction to migrate a contract to new code

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
senderYesThe sender's Osmosis address (must be admin)
contractAddressYesThe contract address to migrate
newCodeIdYesThe new code ID to migrate to
migrateMsgYesThe migration message as a JSON object
Install Server

Other Tools

Latest Blog Posts

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