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

