Skip to main content
Glama

Osmosis MCP Server

prepare-instantiate-contract

Generate a transaction to deploy a new smart contract on Osmosis Blockchain. Specify sender, code ID, label, initialization message, optional funds, and admin address for contract setup.

Instructions

Prepares a transaction to instantiate a new contract

Input Schema

NameRequiredDescriptionDefault
adminNoOptional admin address for the contract
codeIdYesThe code ID to instantiate
fundsNoOptional funds to send with instantiation
initMsgYesThe instantiation message as a JSON object
labelYesA human-readable label for the contract
senderYesThe sender's Osmosis address

Input Schema (JSON Schema)

{ "properties": { "admin": { "description": "Optional admin address for the contract", "type": "string" }, "codeId": { "description": "The code ID to instantiate", "type": "number" }, "funds": { "description": "Optional funds to send with instantiation", "items": { "properties": { "amount": { "description": "Amount to send", "type": "string" }, "denom": { "description": "Token denomination", "type": "string" } }, "required": [ "denom", "amount" ], "type": "object" }, "type": "array" }, "initMsg": { "description": "The instantiation message as a JSON object", "type": "object" }, "label": { "description": "A human-readable label for the contract", "type": "string" }, "sender": { "description": "The sender's Osmosis address", "type": "string" } }, "required": [ "sender", "codeId", "label", "initMsg" ], "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