curl https://site1.moralis-nodes.com/eth/:apiKey \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByNumber", "params": ["0xe8"], "id": 1}'
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x0"
}
Ethereum JSON-RPC API
eth_getBlockTransactionCountByNumber
Returns the number of transactions in a block matching the given block number.
curl https://site1.moralis-nodes.com/eth/:apiKey \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByNumber", "params": ["0xe8"], "id": 1}'
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x0"
}

