Skip to main content

EstimateEnergy gRPC Method

Estimates the energy consumption required for a smart contract call

Updated on
Jul 07, 2026

Parameters

from
string
REQUIRED

The address that is initiating the transaction

contractAddress
string
REQUIRED

The address of the smart contract

method
string
REQUIRED

The method name to call on the contract

jsonString
string
REQUIRED

The method parameters in JSON format

tAmount
integer
REQUIRED

The amount of TRX to send with the transaction

tTokenID
string
REQUIRED

The ID of the TRC10 token to send

tTokenAmount
integer
REQUIRED

The amount of TRC10 token to send

Returns

result
object

The result of the energy estimation

result
boolean

Whether the estimation was successful

code
string

The response code (enum: ReturnResponseCode)

message
string

The response message

energy_required
integer

The estimated amount of energy required for the transaction

Request
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free