Home

eth_gasPrice

POST
wss://linea.nownodes.io/wss/{api_key}.

Returns an estimate of the current gas price in wei (on L2 chains this reflects the L2 component).

Sent as a JSON text message over the WebSocket connection wss://linea.nownodes.io/wss/{{api-key}}.

Connection URL:

Copied!
wss://linea.nownodes.io/wss/{{api_key}}.

Open the connection, then send the message below as a text frame.

Example:

Copied!
wscat -c 'wss://linea.nownodes.io/wss/YOUR_API_KEY.'
> {"jsonrpc":"2.0","method":"eth_gasPrice","id":1,"params":[]}
Copied!
wss://linea.nownodes.io/wss/{{api-key}}

Body

application/json
object

Parameters

api_keystringrequiredpath

Your NOWNodes API key.

Response

200OK

A successful response.