- TriggerConstantContract operation will not generate an on-chain transaction, nor will it change the status of the current node.
- For estimating energy: use triggerconstantcontract to call the non-readonly method of the contract, and the
energy_usedfield in the returned value is the energy consumption. Therefore, the
fee_limitof the transaction can be set to
energy_used x energy unit price.
- Parameter encoding and decoding example: Parameter and return value encoding and decoding