Estimate Gas for Transaction
POST
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Simulates a transaction and returns an estimate of how much gas would be used.
Body
application/json
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
200OK
Estimated gas amount
401Unauthorized
Unauthorized: API key is present but rejected by the NOWNodes gateway.
405Method Not Allowed
Method Not Allowed. Returned by the NOWNodes gateway for malformed or unsupported gateway-level requests.
422Unprocessable Entity
Missing API key. The NOWNodes gateway returns plain text for this error.
500Internal Server Error
JSON-RPC method or upstream error