eth_getBlockTransactionCountByNumber
Polygon zkEVM node API
eth_getBlockTransactionCountByNumber | zkEVM
Polygon zkEVM method that returns the number of transactions in a block specified by block number or tag. Chainstack zkEVM reference.
POST
eth_getBlockTransactionCountByNumber
Polygon zkEVM method that returns the number of transactions in a block specified by block number or tag. This information can be useful for analytics purposes.Documentation Index
Fetch the complete documentation index at: https://docs.chainstack.com/llms.txt
Use this file to discover all available pages before exploring further.
Get your own node endpoint todayStart 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
-
quantity or tag— the integer of a block encoded as hexadecimal or the string with:latest— the most recent block in the blockchain and the current state of the blockchain at the most recent blockearliest— the earliest available or genesis blockpending—the pending state and transactions block. This is the current state of transactions that have been broadcast to the network but have not yet been included in a block.
See the default block parameter.
Response
quantity— an integer value representing how many transactions are included in the block.
eth_getBlockTransactionCountByNumber code examples
Use case
eth_getBlockTransactionCountByNumber can be used to analyze how many transactions are included on the Polygon zkEVM blockchain in a certain period. For instance, on average, a new block is generated on the zkEVM mainnet every 3 seconds, resulting in approximately 1,200 blocks per hour. Using a Web3 library, one can inspect the past 1,00 blocks starting from the latest block and use eth_getBlockTransactionCountByNumber to find the number of transactions in each block to sum them.Last modified on May 18, 2026