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

# eth_getBlockTransactionCountByNumber | Ronin

> Ronin API method that returns the number of transactions in a block matching the given block number. Use it on Ronin via Chainstack.

Ronin API method that returns the number of transactions in a block matching the given block number. This method allows users to query the transaction count for blocks identified by their height in the blockchain.

## Parameters

* `blockNumber` — the number of the block for which to retrieve the transaction count. It can be specified as a hexadecimal value or as one of the special strings `"earliest"`, `"latest"`, or `"pending"`.

## Response

* `result` — the number of transactions in the specified block, encoded as a hexadecimal.

## Use case

The `eth_getBlockTransactionCountByNumber` method is useful for applications and services that analyze the Ronin blockchain. It can help in understanding the transaction throughput and identifying blocks with unusually high or low numbers of transactions, which could indicate significant events or changes in network activity.


## OpenAPI

````yaml openapi/ronin_node_api/eth_getBlockTransactionCountByNumber.json POST /3997273fc956a67dc6982384500e669e
openapi: 3.0.0
info:
  title: eth_getBlockTransactionCountByNumber
  version: 1.0.0
  description: >-
    Returns the number of transactions in a block matching the given block
    number.
servers:
  - url: https://ronin-mainnet.core.chainstack.com
security: []
paths:
  /3997273fc956a67dc6982384500e669e:
    post:
      tags:
        - blockchain
      summary: Get the number of transactions in a block by number
      operationId: getBlockTransactionCountByNumber
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                id:
                  type: integer
                  default: 1
                jsonrpc:
                  type: string
                  default: '2.0'
                method:
                  type: string
                  default: eth_getBlockTransactionCountByNumber
                params:
                  type: array
                  items:
                    type: string
                  default:
                    - latest
      responses:
        '200':
          description: The number of transactions in the specified block
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    type: string

````