Home

eth_getBlockTransactionCountByHash

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

Returns the number of transactions in a block matching the given block hash.

Connection URL:

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

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

Example:

Copied!
wscat -c 'wss://optimism.nownodes.io/wss/YOUR_API_KEY'
> {"jsonrpc":"2.0","method":"eth_getBlockTransactionCountByHash","params":["0xb903239f8543d04b5dc1ba6579132b143087c68db1b2168786408fcbce568238"],"id":1}

Body

application/json
object

Parameters

api_keystringrequiredpath

Your NOWNodes API key.

Response

200OK

A successful response.