Polygon zkEVM API method that returns the number of transactions in a block specified by block hash. This information can be useful for analytics purposes.
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.
hash
— the block hash of the requested block.quantity
— an integer value representing how many transactions are included in the block.eth_getBlockTransactionCountByHash
code exampleseth_getBlockTransactionCountByHash
is a useful tool for analyzing the Polygon zkEVM blockchain transaction volume. On average, a new block is generated on the Polygon zkEVM mainnet every 3 seconds, resulting in approximately 1,200 blocks per hour. Using a Web3 library, one can inspect the past 1,200 blocks starting from the latest block, retrieve the hash of each block, and use eth_getBlockTransactionCountByHash
to find the number of transactions in each block.
The block information
The response is of type object
.
Polygon zkEVM API method that returns the number of transactions in a block specified by block hash. This information can be useful for analytics purposes.
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.
hash
— the block hash of the requested block.quantity
— an integer value representing how many transactions are included in the block.eth_getBlockTransactionCountByHash
code exampleseth_getBlockTransactionCountByHash
is a useful tool for analyzing the Polygon zkEVM blockchain transaction volume. On average, a new block is generated on the Polygon zkEVM mainnet every 3 seconds, resulting in approximately 1,200 blocks per hour. Using a Web3 library, one can inspect the past 1,200 blocks starting from the latest block, retrieve the hash of each block, and use eth_getBlockTransactionCountByHash
to find the number of transactions in each block.
The block information
The response is of type object
.