trigger_constant_contract
Call a read-only (view/pure) smart contract method. No transaction created, no fees. Returns decoded result. Provide either method+params OR data (pre-packed calldata).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Pre-packed ABI calldata as hex (0x prefix optional). When provided, method and params are ignored. | |
| from | No | Caller address (base58, starts with T; optional — defaults to zero address) | |
| method | No | Method signature (e.g., 'totalSupply()', 'balanceOf(address)'). Required unless data is provided. | |
| params | No | Method parameters as JSON array. Plain values: ["TJD...", "1000"] (types inferred from method signature). Typed objects also accepted: [{"address": "TJD..."}, {"uint256": "1000"}] | |
| token_id | No | TRC10 token ID for simulating TRC10 token transfers | |
| call_value | No | Amount in SUN to send with call (default: 0, 1 TRX = 1000000 SUN). Required for simulating payable functions. | |
| token_value | No | TRC10 token amount to send with call (default: 0) | |
| contract_address | Yes | Smart contract address (base58, starts with T) |