> ## Documentation Index
> Fetch the complete documentation index at: https://docs.etherscan.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Block Transaction Counts by Block Number

> Retrieves transaction counts for a specified Ethereum block.

export const chain = '1';

<Badge color="yellow">Ethereum</Badge>

### Query Parameters

<ParamField query="apikey" type="string" default="YourApiKeyToken">
  Your Etherscan API key.
</ParamField>

<ParamField query="chainid" type="string" default="1">
  Chain ID to query, eg `1` for Ethereum from our [supported chains](/supported-chains).
</ParamField>

<ParamField query="module" type="string" default="block">
  Set to `block` for this endpoint.
</ParamField>

<ParamField query="action" type="string" default="getblocktxnscount">
  Set to `getblocktxnscount` for this endpoint.
</ParamField>

<ParamField query="blockno" type="integer" default="24884529">
  Block number to check transaction counts for.
</ParamField>

### Response

<ResponseField name="status" type="string">
  Returns `1` when the request succeeds.
</ResponseField>

<ResponseField name="message" type="string">
  Returns the request status message.
</ResponseField>

<ResponseField name="result" type="object">
  Contains the transaction counts for the requested block.

  <Expandable title="result properties">
    <ResponseField name="block" type="integer">
      Block number returned by the request.
    </ResponseField>

    <ResponseField name="txsCount" type="integer">
      Number of normal transactions in the block.
    </ResponseField>

    <ResponseField name="internalTxsCount" type="integer">
      Number of internal transactions in the block.
    </ResponseField>

    <ResponseField name="erc20TxsCount" type="integer">
      Number of ERC-20 token transfers in the block.
    </ResponseField>

    <ResponseField name="erc721TxsCount" type="integer">
      Number of ERC-721 token transfers in the block.
    </ResponseField>

    <ResponseField name="erc1155TxsCount" type="integer">
      Number of ERC-1155 token transfers in the block.
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseExample>
  ```json theme={null}
  {
    "status": "1",
    "message": "OK",
    "result": {
      "block": 24884529,
      "txsCount": 87,
      "internalTxsCount": 55,
      "erc20TxsCount": 103,
      "erc721TxsCount": 1,
      "erc1155TxsCount": 0
    }
  }
  ```
</ResponseExample>
