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

> Base API method that retrieves the number of transactions in a block, identified by its number. eth_getBlockTransactionCountByNumber on Base via Chainstack.

Base API method that retrieves the number of transactions in a block, identified by its number. This method allows for understanding the transaction volume within a specific block without needing to load the entire block's data.

<Check>
  **Get your own node endpoint today**

  [Start for free](https://console.chainstack.com/) and get your app to production levels immediately. No credit card required.

  You can sign up with your GitHub, X, Google, or Microsoft account.
</Check>

## Parameters

* `blockNumber` — the number of the block for which the transaction count is being queried, encoded as a hexadecimal string.

## Response

* `result` — the number of transactions in the specified block, encoded as a hexadecimal string. This includes all transactions that were part of the block at the time it was mined.

## Use case

The `eth_getBlockTransactionCountByNumber` method is useful for applications that monitor blockchain activity, such as wallets, block explorers, or analytics platforms. It can help these applications quickly gauge the level of activity within specific blocks or over a range of blocks.


## OpenAPI

````yaml /openapi/base_node_api/eth_getBlockTransactionCountByNumber.json POST /2fc1de7f08c0465f6a28e3c355e0cb14
openapi: 3.0.0
info:
  title: eth_getBlockTransactionCountByNumber example
  version: 1.0.0
  description: This is an API example for eth_getBlockTransactionCountByNumber.
servers:
  - url: https://base-mainnet.core.chainstack.com
security: []
paths:
  /2fc1de7f08c0465f6a28e3c355e0cb14:
    post:
      tags:
        - Ethereum Operations
      summary: eth_getBlockTransactionCountByNumber
      operationId: getBlockTransactionCountByNumber
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                jsonrpc:
                  type: string
                  default: '2.0'
                method:
                  type: string
                  default: eth_getBlockTransactionCountByNumber
                id:
                  type: integer
                  default: 1
                params:
                  type: array
                  items:
                    anyOf:
                      - type: string
                        default: '0xbb623d'
                  default:
                    - '0xbb623d'
      responses:
        '200':
          description: The transaction count of the block by number
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    type: string

````