estimate_energy
Estimate energy cost for a smart contract call. Requires a full node with vm.supportConstant=true and vm.estimateEnergy=true; falls back to secondary node if primary does not support it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | Yes | Caller address (base58, starts with T) | |
| method | Yes | Contract method signature (e.g., 'transfer(address,uint256)') | |
| params | Yes | Method parameters as JSON array. Plain values: ["TJD...", "1000"] (types inferred from method signature). Typed objects also accepted: [{"address": "TJD..."}, {"uint256": "1000"}] | |
| contract_address | Yes | Smart contract address (base58, starts with T) |