TriggerConstantContract
POST
/walletsolidity/triggerconstantcontract
view
or pure
modifier) of a contract to query contract data, or invoke the non-read-only function of a contract to predict whether the transaction can be successfully executed or estimate energy consumption. (Confirmed state)TriggerConstantContract
operation does not generate an on-chain transaction and does not alter the status of the current node.triggerconstantcontract
to call the non-read-only method of the contract. The energy_used
field in the returned value represents the energy consumption. Thus, the fee_limit
of the transaction can be set to energy_used x energy unit price
.Field | Type | Description |
---|---|---|
result | Return | Run result, for detailed parameter definition, refer to EstimateEnergy |
energy_used | int64 | Estimated energy consumption |
constant_result | string[] | Result list of triggered functions |
transaction | Transaction | Transaction information, refer to GetTransactionByID |
Request
Body Params application/json