> For the complete documentation index, see [llms.txt](/llms.txt).

# `starknet_getBlockTransactionCount`

Returns the number of transactions in the specified block.

## Parameters[​](#parameters "Direct link to Parameters")

`block_id`: [_Required_] The block parameter object containing one of the following:

- `block_hash`: (string) Block hash.
- `block_number`: (integer) Decimal block number.
- One of the string tags `latest` or `pending`.

## Returns[​](#returns "Direct link to Returns")

Number of transactions in the requested block.

## Example[​](#example "Direct link to Example")

Replace `<YOUR-API-KEY>` with an API key from your [Infura dashboard](https://app.infura.io/).

### Request[​](#request "Direct link to Request")

- curl

```
curl https://starknet-mainnet.infura.io/v3/<YOUR-API-KEY> \
  -X POST \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "method": "starknet_getBlockTransactionCount",
    "params": {
      "block_id": {
        "block_number": 470207
      }
    },
    "id": 0
  }'

```

### Response[​](#response "Direct link to Response")

- JSON

```
{
  "jsonrpc": "2.0",
  "result": 148,
  "id": 1
}

```
