eth_estimateGas
POST
Generates and returns an estimate of how much gas is necessary to allow the transaction to complete. The transaction will not be added to the blockchain. Note that the estimate may be significantly more than the amount of gas actually used by the transaction, for a variety of reasons including EVM mechanics and node performance.
Connection URL:
Copied!
wss://avax.nownodes.io/wss/{{api_key}}Open the connection, then send the message below as a text frame.
Example:
Copied!
wscat -c 'wss://avax.nownodes.io/wss/YOUR_API_KEY'
> {"jsonrpc":"2.0","method":"eth_estimateGas","params":[{"to":"0xd46e8dd67c5d32be8058bb8eb970870f07244567"},"latest"],"id":1}Body
application/json
object
Parameters
api_keystringrequiredpathYour NOWNodes API key.
Response
200OK
A successful response.