EVM
eth_getBlockTransactionCountByNumber
Summary: Get number of transactions by block number
This request returns the number of transactions from the block matching the given block number.
Parameters
block oneOf
Block number or string tag.
Returns
The number of transactions in the block in hexadecimal, or
null
if not found.
eth_getBlockTransactionCountByNumberResponse oneOf
Customize request
Parameter
Value
Request
CURL
curl https://linea-mainnet.infura.io/v3/<YOUR-API-KEY> \
-X POST \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_getBlockTransactionCountByNumber",
"params": ["0x4fde9d"],
"id": 1
}'
Example response
{
"id": 1,
"jsonrpc": "2.0",
"result": "0x21"
}