estimate-instantiate-fee
Calculate gas fees for deploying smart contracts on Osmosis by providing sender address, code ID, initialization message, and optional funds.
Instructions
Estimates gas fees for contract instantiation
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| codeId | Yes | The code ID to instantiate | |
| funds | No | Optional funds to send | |
| initMsg | Yes | The instantiation message | |
| sender | Yes | The sender's Osmosis address |
Input Schema (JSON Schema)
{
"properties": {
"codeId": {
"description": "The code ID to instantiate",
"type": "number"
},
"funds": {
"description": "Optional funds to send",
"items": {
"properties": {
"amount": {
"type": "string"
},
"denom": {
"type": "string"
}
},
"required": [
"denom",
"amount"
],
"type": "object"
},
"type": "array"
},
"initMsg": {
"description": "The instantiation message",
"type": "object"
},
"sender": {
"description": "The sender's Osmosis address",
"type": "string"
}
},
"required": [
"sender",
"codeId",
"initMsg"
],
"type": "object"
}