---
updatedAt: 2026-03-05T10:56:24.000Z
agentTools:
  projectIndex: https://docs.tatum.io/llms.txt
---

# eth_getblocktransactioncountbynumber

Haqq  RPC

### How to use it

```typescript
// yarn add @tatumio/tatum

import { TatumSDK, Haqq, Network } from '@tatumio/tatum'

const tatum = await TatumSDK.init<Haqq>({network: Network.HAQQ}

const response = await tatum.rpc.getBlockTransactionCountByNumber(7687453)

await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs
```

### Overview

The `eth_getBlockTransactionCountByNumber` Haqq JSON-RPC method allows you to retrieve the number of transactions in a specified block. This method is particularly useful when you need to analyze the transaction activity of a specific block. You can use it to gain insights into network usage, analyze the impact of specific events on the Haqq network, or monitor transaction congestion in certain blocks.

### Parameters

1. **`blockNumber`**: The block number for which the transaction count should be retrieved. It should be a hex-encoded value representing the block number.
   * Example: 7687453

<Embed url="https://codepen.io/tatum-devrel/pen/YzRmbaE" href="https://codepen.io/tatum-devrel/pen/YzRmbaE" typeOfEmbed="iframe" height="300px" width="100%" iframe="true" provider="codepen.io" title="undefined" />

### Return Object

The return object is a hex-encoded value representing the number of transactions in the specified block.

* Example: `"0xa"` (10 transactions)

### JSON-RPC Request and Response Examples

#### Request

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "eth_getBlockTransactionCountByNumber",
  "params": [7687453]
}
```

#### Response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0xa"
}
```

\\