Estimate energy usage for contract call
Estimates the amount of energy that will be consumed by a smart contract call with given parameters.
Request
This endpoint expects an object.
owner_address
Base58 address calling the contract.
contract_address
Base58 address of the contract to call.
data
Hex-encoded call data (function selector and arguments).
call_value
Amount of TRX to transfer with the call (in SUN).
visible
Indicates if addresses are base58 (true) or hex (false).
Response
Energy estimation for contract call.
energy_required
Estimated energy required for the call.
result
Whether the estimation was successful.
message
Additional message or error.