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
oneOfBlock number or string tag.
Returns
eth_getBlockTransactionCountByNumberResponse
oneOf
Customize request
Parameter
Value
RequestCURL
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"
}