Estimate Gas for Transaction
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Changed. Big-integer quantity fields (value, gasPrice, maxFeePerGas) must be canonical 0x-prefixed unsigned hex of at most 256 bits. Negative values, values without the 0x prefix, values with leading zeros (for example 0x00 or 0x01) and values over 256 bits are now rejected with an error; before, they were accepted. Encode zero as 0x0. A parameter decoding error now returns JSON-RPC error code -32602 (invalid params).
Simulates a transaction and returns an estimate of how much gas would be used.
Malformed numeric values in big-integer fields (for example value or gasPrice) are now rejected with an error; before, they were silently decoded as zero.
Body
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