prepare-instantiate-contract
Prepare a transaction to deploy a new smart contract on Osmosis by specifying sender, code ID, label, and initialization parameters.
Instructions
Prepares a transaction to instantiate a new contract
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sender": "<sender>",
"codeId": "<codeId>",
"label": "<label>",
"initMsg": "<initMsg>"
},
"name": "prepare-instantiate-contract"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sender | Yes | The sender's Osmosis address | |
| codeId | Yes | The code ID to instantiate | |
| label | Yes | A human-readable label for the contract | |
| initMsg | Yes | The instantiation message as a JSON object | |
| funds | No | Optional funds to send with instantiation | |
| admin | No | Optional admin address for the contract |