eth_estimateGas
POST
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Changed. The estimate now includes the minimum gas limit that the mempool requires for a transaction of this size. For large transactions (big calldata) the returned value can be higher than before; previously a transaction signed with the estimate could be rejected with insufficient gas limit for tx size. The response format is unchanged.
Estimate the gas required for a transaction.
Body
application/json
jsonrpcstring2.0requiredidinteger | stringrequiredmethodstringeth_estimateGasrequiredparamsobjectrequiredResponse
200OK
Successful JSON-RPC response
400Bad Request
Invalid JSON-RPC request
401Unauthorized
Missing or invalid API key
429Too Many Requests
Rate limit exceeded
500Internal Server Error
Node or upstream error