Estimate Gas for Transaction
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.
Simulates a transaction and returns an estimate of how much gas would be used.
Body
application/json
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