trigger_contract
Call a smart contract method. Returns unsigned transaction hex for signing. 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 | Yes | Caller address (base58, starts with T) | |
| method | No | Method signature (e.g., 'transfer(address,uint256)'). 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"}] | |
| fee_limit | No | Fee limit in whole TRX (integer), range 0-15000 (default: 100) | |
| call_value | No | Amount to send with call in SUN (default: 0) | |
| permission_id | No | Permission ID for multi-sig transactions | |
| contract_address | Yes | Smart contract address (base58, starts with T) |