curl --request POST \
--url https://ronin-mainnet.core.chainstack.com/3997273fc956a67dc6982384500e669e \
--header 'Content-Type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "eth_getBlockTransactionCountByNumber",
"params": [
"latest"
]
}'
{
"jsonrpc": "<string>",
"id": 123,
"result": "<string>"
}
curl --request POST \
--url https://ronin-mainnet.core.chainstack.com/3997273fc956a67dc6982384500e669e \
--header 'Content-Type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "eth_getBlockTransactionCountByNumber",
"params": [
"latest"
]
}'
{
"jsonrpc": "<string>",
"id": 123,
"result": "<string>"
}
blockNumber
— the number of the block for which to retrieve the transaction count. It can be specified as a hexadecimal value or as one of the special strings "earliest"
, "latest"
, or "pending"
.result
— the number of transactions in the specified block, encoded as a hexadecimal.eth_getBlockTransactionCountByNumber
method is useful for applications and services that analyze the Ronin blockchain. It can help in understanding the transaction throughput and identifying blocks with unusually high or low numbers of transactions, which could indicate significant events or changes in network activity.The number of transactions in the specified block
The response is of type object
.