POSTEstimateEnergy
https://tron-mainnet.nodit.io/wallet/estimateenergyEstimate the energy required for the successful execution of smart contract transactions or deploying a contract
Transaction initiator address. (Format: Base58 or Hex)
Contract address. (Format: Base58 or Hex)
Example: TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs
Function selector.
Example: transfer(address,uint256).
ABI-encoded function parameters (Hex String).
Example: 000000000000000000000000a614f803b6fd780986a42c78ec9c7f77e6ded13c
This field transmits the necessary data for smart contract interaction, including the function being called and its parameters. You may choose to use the data field, which contains the complete ABI-encoded information, or use the function_selector and parameter fields separately. Note that if both data and function_selector are present, the system will prioritize using the function_selector and parameter fields for the contract interaction.
Amount of TRX transferred into the contract. (Unit: sun)
Amount of TRC-10 token transferred into the contract.
TRC-10 token ID
Optional. Set to true to format addresses in Base58; set to false for hex format. (Default: false)
Result of the contract execution simulation.
Response code indicating the error type. (Returned only on failure)
Response message describing the error details. (Returned only on failure)
Estimated Energy required to execute the transaction.