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
Name | Required | Description | Default |
---|---|---|---|
admin | No | Optional admin address for the contract | |
codeId | Yes | The code ID to instantiate | |
funds | No | Optional funds to send with instantiation | |
initMsg | Yes | The instantiation message as a JSON object | |
label | Yes | A human-readable label for the contract | |
sender | Yes | The 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"
}