Estimate Gas for Transaction
POST
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Changed. A call that sets blobVersionedHashes or authorizationList must include to. Without it the node rejects the request with an error (missing "to" in blob transaction or authorizationList provided for contract creation, but "to" field is missing).
Simulates a transaction and returns an estimate of how much gas would be used.
Body
application/json
JSON-RPC request envelope.
jsonrpcstring2.0requiredJSON-RPC protocol version.
methodstringeth_estimateGasrequiredJSON-RPC method name.
paramsArray<object | string>requiredThe transaction call object and an optional block tag.
idintegerrequiredIdentifier echoed in the response.
Response
200OK
Estimated gas amount