POST
/
3997273fc956a67dc6982384500e669e
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>"
}

Ronin API method that returns the number of transactions in a block matching the given block number. This method allows users to query the transaction count for blocks identified by their height in the blockchain.

Get you own node endpoint today

Start for free and get your app to production levels immediately. No credit card required.

You can sign up with your GitHub, X, Google, or Microsoft account.

Parameters

  • 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".

Response

  • result — the number of transactions in the specified block, encoded as a hexadecimal.

Use case

The 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.

Body

application/json
id
integer
default:1
jsonrpc
string
default:2.0
method
string
default:eth_getBlockTransactionCountByNumber
params
string[]

Response

200 - application/json
The number of transactions in the specified block
jsonrpc
string
id
integer
result
string