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_getBlockTransactionCountByHash",
  "params": [
    "0x66d67565dc84eb6e579ebe142683e4338498653ff6b7a6e2724e80a73aca4f20"
  ]
}'
{
  "jsonrpc": "<string>",
  "id": 123,
  "result": "<string>"
}

Ronin API method that returns the number of transactions in a block from a block matching the given block hash. This is useful for determining the volume of transactions within a specific block.

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

  • blockHash — the hash of the block for which to retrieve the transaction count.

Response

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

Use case

The eth_getBlockTransactionCountByHash method can be particularly useful for analytics and monitoring services that need to track the transaction throughput or density of blocks within the Ronin blockchain. It allows these services to identify blocks that contain a high or low number of transactions, which can be indicative of network congestion or usage patterns.

Body

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

Response

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