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

# jsonrpc eth_getBlockTransactionCountByHash | TRON

> TRON API method that returns the number of transactions in a block by block hash using Ethereum-compatible JSON-RPC format. On TRON.

TRON API method that returns the number of transactions in a block by block hash using Ethereum-compatible JSON-RPC format. This method provides Ethereum tooling compatibility for block transaction counting on TRON.

## Parameters

* `jsonrpc` — the JSON-RPC protocol version (always "2.0")
* `method` — the method name (always "eth\_getBlockTransactionCountByHash")
* `params` — array containing method parameters
  * `blockHash` — the hash of the target block as a hexadecimal string
* `id` — request identifier (number or string)

## Response

* `jsonrpc` — the JSON-RPC protocol version ("2.0")
* `id` — the request identifier that matches the request
* `result` — the number of transactions in the block as a hexadecimal string

## Use case

The `jsonrpc eth_getBlockTransactionCountByHash` method is used for:

* Getting transaction count for specific blocks using Ethereum-compatible tools
* Analyzing block capacity and transaction throughput on TRON
* Supporting Ethereum-based block explorers and analytics tools on TRON
* Enabling existing Ethereum applications to work with TRON blockchain data


## OpenAPI

````yaml openapi/tron_node_api/jsonrpc_eth_getBlockTransactionCountByHash.json POST /95e61622bf6a8af293978377718e3b77/jsonrpc
openapi: 3.0.0
info:
  title: jsonrpc eth_getBlockTransactionCountByHash TRON API
  version: 1.0.0
  description: >-
    Get number of transactions in a block by hash using Ethereum-compatible
    JSON-RPC
servers:
  - url: https://tron-mainnet.core.chainstack.com
security: []
paths:
  /95e61622bf6a8af293978377718e3b77/jsonrpc:
    post:
      tags:
        - JSON-RPC Compatibility
      summary: eth_getBlockTransactionCountByHash
      operationId: ethGetBlockTransactionCountByHash
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - jsonrpc
                - method
                - params
                - id
              properties:
                jsonrpc:
                  type: string
                  enum:
                    - '2.0'
                  default: '2.0'
                method:
                  type: string
                  enum:
                    - eth_getBlockTransactionCountByHash
                  default: eth_getBlockTransactionCountByHash
                params:
                  type: array
                  items:
                    type: string
                  default:
                    - >-
                      0x00000000020ef11c87517739090601aa0a7be1de6faebf35ddb14e7ab7d1cc5b
                id:
                  oneOf:
                    - type: string
                    - type: integer
                  default: 1
      responses:
        '200':
          description: Number of transactions in the specified block
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                    example: '2.0'
                  id:
                    oneOf:
                      - type: string
                      - type: integer
                    example: 1
                  result:
                    type: string
                    description: Number of transactions in the block as hexadecimal
                    example: '0x1'

````