Skip to main content
POST
Generates and returns an estimate of how much gas is necessary to allow the transaction to complete. The transaction will not be added to the blockchain. Note that the estimate may be significantly more than the amount of gas actually used by the transaction, for a variety of reasons including EVM mechanics and node performance

Body

number
Serves as a unique identifier for the request
string
Indicates the version of JSON-RPC being used
string
Represents the name of the remote procedure or method to be called
array
Contains the list of parameters passed to the remote method

Response

number
Returns unique identifier for the request
string
Returns the version of JSON-RPC being used
string
A hexadecimal of the estimate of the gas for the given transaction.