eth_getBlockByNumber
POST
Returns information about a block by block number (hex) or tag (latest, earliest, pending, safe, finalized). The second parameter controls full transactions versus hashes.
Sent as a JSON text message over the WebSocket connection wss://monad.nownodes.io/wss/{{api-key}}.
Connection URL:
Copied!
wss://monad.nownodes.io/wss/{{api_key}}.Open the connection, then send the message below as a text frame.
Example:
Copied!
wscat -c 'wss://monad.nownodes.io/wss/YOUR_API_KEY.'
> {"jsonrpc":"2.0","method":"eth_getBlockByNumber","id":1,"params":["0x1b4",true]}
Copied!
wss://monad.nownodes.io/wss/{{api-key}}Body
application/json
object
Parameters
api_keystringrequiredpathYour NOWNodes API key.
Response
200OK
A successful response.