estimate_energy
Simulate a smart contract call to estimate its energy consumption before sending, using contract address, function name, ABI, and optional arguments.
Instructions
Estimate energy consumption for a smart contract call (simulation).
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": {
"address": "<address>",
"functionName": "<functionName>",
"abi": "<abi>"
},
"name": "estimate_energy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| abi | Yes | Contract ABI (required for encoding) | |
| args | No | Function arguments | |
| address | Yes | Contract address | |
| network | No | Network name. Defaults to mainnet. | |
| functionName | Yes | Function name to call | |
| ownerAddress | No | Caller address for simulation. Defaults to configured wallet. |