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

# walletsolidity/gettransactioncountbyblocknum | TRON

> TRON API method that retrieves the transaction count within a solidified block by block number. Available on TRON via Chainstack JSON-RPC nodes.

TRON API method that retrieves the transaction count within a solidified block by block number. This method queries confirmed and finalized blockchain state, providing reliable transaction count information that cannot be rolled back.

## Parameters

* `num` — the block number to get transaction count for (integer)

## Response

Returns transaction count information:

* `count` — the number of transactions in the specified block
* `blockNumber` — the block number queried

## Use case

The `walletsolidity/gettransactioncountbyblocknum` method is used for:

* Counting confirmed transactions in specific solidified blocks
* Analyzing block activity and transaction volume from finalized data
* Building blockchain statistics and analytics with reliable information
* Implementing applications that require confirmed transaction count data


## OpenAPI

````yaml openapi/tron_node_api/walletsolidity_gettransactioncountbyblocknum.json post /95e61622bf6a8af293978377718e3b77/walletsolidity/gettransactioncountbyblocknum
openapi: 3.0.0
info:
  title: walletsolidity/gettransactioncountbyblocknum TRON API
  version: 1.0.0
  description: Get transaction count in a solidified block by block number
servers:
  - url: https://tron-mainnet.core.chainstack.com
security: []
paths:
  /95e61622bf6a8af293978377718e3b77/walletsolidity/gettransactioncountbyblocknum:
    post:
      tags:
        - Solidity Query
      summary: walletsolidity/gettransactioncountbyblocknum
      operationId: getSolidityTransactionCountByBlockNum
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - num
              properties:
                num:
                  type: integer
                  description: Block number to get transaction count for
                  example: 70000000
                  minimum: 0
      responses:
        '200':
          description: Transaction count in the specified solidified block
          content:
            application/json:
              schema:
                type: object
                properties:
                  count:
                    type: integer
                    description: Number of transactions in the block
                    example: 42
                  blockNumber:
                    type: integer
                    description: Block number queried
                    example: 70000000

````