Skip to main content

/walletsolidity/estimateenergy REST API Endpoint

Estimate the energy required for the successful execution of smart contract transactions (Confirmed state).

Updated on
Oct 04, 2023

Body Parameters

owner_address
string
REQUIRED

The address that triggers the contract, converted to a hexString

contract_address
string
REQUIRED

The contract address, encoded in hexString

function_selector
integer
REQUIRED

The function call. This field must not be left blank

parameter
string
REQUIRED

The parameter encoding needs to be in accordance with the ABI rules

visible
boolean

A boolean value indicating whether the address is in base58 format

Returns

result

The result object with the following fields:

result

It is true if the estimate is successful, otherwise false

code

The response code

message

The result message

energy_required

The estimated energy to run the contract

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