EstimateEnergy

Estimate the energy required for the successful execution of smart contract transactions or deploying a contract

This endpoint supports both POST and GET methods.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
Defaults to TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g

Owner address that triggers the contract. If visible=true, use base58check format, otherwise use hex format. For constant call you can use the all-zero address.

string
Defaults to TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs

Smart contract address. If visible=true, use base58check format, otherwise use hex format.

string
Defaults to balanceOf(address)

Function call, must not be left blank.

string
Defaults to 000000000000000000000000a614f803b6fd780986a42c78ec9c7f77e6ded13c

Parameter encoding needs to be in accordance with the ABI rules, the rules are more complicated, users can use the ethers library to encode,For details, please refer to the document-Guide-Smart Contract-Best Practice-Parameter Encoding and Decoding.

string

The bytecode of the contract or the data for interacting with smart contracts, including the contract function and parameters. You can choose to use this field, or you can choose to use function_selector and parameter for contract interaction. When both of data and function_selector exist, function_selector is preferred

int64

Amount of TRX transferred with this transaction, measured in SUN (1 TRX = 1,000,000 SUN).

int64

Amount of TRC10 token transferred with this transaction

int64

TRC10 token id

boolean
Defaults to true

Optional.Whehter the address is in base58 format.

Responses

Language
Credentials
Header
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json