eth_getBlockTransactionCountByNumber

Network: Robinhood Chain Mainnet · Mainnet · Chain ID 4663 (0x1237)

Counts as 1 request. See Request Counting.

Description

Returns the number of transactions in a block by number.

Parameters

ParameterTypeRequiredDescription
blockblockTagYesBlock number or tag

Request

{ "jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByNumber", "params": ["latest"], "id": 1 }

Code Examples

curl -X POST https://robinhood-mainnet-rpc.blockreq.com/v1/rpc/public \ -H "Content-Type: application/json" \ -d '{"jsonrpc":"2.0","method":"eth_getBlockTransactionCountByNumber","params":["latest"],"id":1}'

Try It