--- title: getBlockTransactionCount --- # getBlockTransactionCount Retrieves the count of transactions within a block. ## Usage ```js tronWeb.trx.getBlockTransactionCount(blockHeightOrBlockHash) ``` ## Parameters | Parameters | Parameter Description | Data Type | |--------------|------------------------------------------------------------------------|----------------| | Block Height or Block Hash | The height of the block or the block hash you wish to obtain transaction count data for. | Integer/string | ## Return Number - The number of transactions in the block. ## Example ```js await tronWeb.trx.getBlockTransactionCount(16012520); // output-start 35 // output-end await tronWeb.trx.getBlockTransactionCount("0000000000f454e84edbee2365fbf1bf34bc98283ded06e68311bb6e5bea3cf6"); // output-start 35 // output-end ```