Generates and returns an estimate of how much gas is necessary to allow the transaction to complete.
POST/:network/eth_estimateGas
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.
Request
Path Parameters
network stringrequired
Default value: eth-mainnet
The blockchain network to connect to.
Example: eth-mainnet
Query Parameters
projectId stringrequired
Default value: 8ry9f6t9dct1se2hlagxnd9n2a
The id of your project. Can be found in your Histori dashboard.
Example: 8ry9f6t9dct1se2hlagxnd9n2a
- application/json
Body
id integer
jsonrpc string
method string
params undefined[]nullable
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
- Sample Response
Schema
id integer
jsonrpc string
result string
{
"id": 0,
"jsonrpc": "string",
"result": "string"
}
Real World response
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x5208"
}
Loading...