zetrix_sdk_invoke_contract
Execute smart contract functions on the Zetrix blockchain by submitting transactions that modify contract state, requiring authentication with a private key.
Instructions
Invoke a smart contract function with state change (requires private key)
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": {
"sourceAddress": "<sourceAddress>",
"privateKey": "<privateKey>",
"contractAddress": "<contractAddress>",
"amount": "<amount>",
"input": "<input>"
},
"name": "zetrix_sdk_invoke_contract"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sourceAddress | Yes | The account address initiating the transaction | |
| privateKey | Yes | Private key for signing the transaction | |
| contractAddress | Yes | The smart contract address to invoke | |
| amount | Yes | Amount of ZTX to send with invocation (in micro-ZTX) | |
| input | Yes | JSON string with method and params | |
| metadata | No | Optional transaction description |