contract-execute
Execute smart contract functions to modify on-chain state using a specified contract address, execution message, and network. Send optional funds and memos to complete transactions.
Instructions
Execute a function on a smart contract that changes state
Input Schema
Name | Required | Description | Default |
---|---|---|---|
contractAddress | Yes | Address of the smart contract to execute | |
executeMsg | Yes | The execute message to send to the contract as a JSON object | |
funds | No | Optional funds to send with the execution | |
memo | No | Optional memo for the transaction | |
networkName | Yes | Name of the network to use - must first check available networks |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"contractAddress": {
"description": "Address of the smart contract to execute",
"type": "string"
},
"executeMsg": {
"additionalProperties": {},
"description": "The execute message to send to the contract as a JSON object",
"type": "object"
},
"funds": {
"description": "Optional funds to send with the execution",
"items": {
"additionalProperties": false,
"properties": {
"amount": {
"type": "string"
},
"denom": {
"type": "string"
}
},
"required": [
"amount"
],
"type": "object"
},
"type": "array"
},
"memo": {
"description": "Optional memo for the transaction",
"type": "string"
},
"networkName": {
"description": "Name of the network to use - must first check available networks",
"type": "string"
}
},
"required": [
"contractAddress",
"executeMsg",
"networkName"
],
"type": "object"
}