Estimate Gas for Transaction
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
Simulates a transaction and returns an estimate of how much gas would be used.
Request payload for Estimate Gas for Transaction.
jsonrpcstringrequiredJSON-RPC protocol version
methodstringrequiredThe method name
paramsArray<object | string>requiredThe transaction call object and an optional block tag.
idintegerrequiredRequest identifier
Response
Estimated gas amount
Unauthorized: API key is present but rejected by the NOWNodes gateway.
Method Not Allowed. Returned by the NOWNodes gateway for malformed or unsupported gateway-level requests.
Missing API key. The NOWNodes gateway returns plain text for this error.
Upstream node or gateway error.