{
  "openapi": "3.1.0",
  "info": {
    "title": "Get Block Transaction Counts by Block Number",
    "version": "2.0.0",
    "description": "Retrieves transaction counts for a specified Ethereum block.",
    "license": {
      "name": "Etherscan API Terms",
      "url": "https://etherscan.io/terms"
    }
  },
  "servers": [
    {
      "url": "https://api.etherscan.io",
      "description": "Etherscan API."
    }
  ],
  "security": [
    {
      "apiKey": []
    }
  ],
  "paths": {
    "/v2/api": {
      "get": {
        "operationId": "getGetblocktxnscount",
        "summary": "Get Block Transaction Counts by Block Number",
        "description": "Retrieves transaction counts for a specified Ethereum block.",
        "parameters": [
          {
            "name": "chainid",
            "in": "query",
            "required": true,
            "description": "Chain ID to query, eg 1 for Ethereum from our supported chains.",
            "schema": {
              "type": "string"
            },
            "example": "1"
          },
          {
            "name": "module",
            "in": "query",
            "required": true,
            "description": "Set to block for this endpoint.",
            "schema": {
              "type": "string",
              "default": "block"
            },
            "example": "block"
          },
          {
            "name": "action",
            "in": "query",
            "required": true,
            "description": "Set to getblocktxnscount for this endpoint.",
            "schema": {
              "type": "string",
              "default": "getblocktxnscount"
            },
            "example": "getblocktxnscount"
          },
          {
            "name": "blockno",
            "in": "query",
            "required": true,
            "description": "Block number to check transaction counts for.",
            "schema": {
              "type": "integer"
            },
            "example": 24884529
          }
        ],
        "security": [
          {
            "apiKey": []
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "Get Block Transaction Counts by Block Number",
            "description": "Retrieves transaction counts for a specified Ethereum block."
          }
        },
        "x-etherscan-source-page": {
          "page": "api-reference/endpoint/getblocktxnscount",
          "title": "Get Block Transaction Counts by Block Number",
          "module": "block",
          "action": "getblocktxnscount"
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "apiKey": {
        "type": "apiKey",
        "in": "query",
        "name": "apikey",
        "description": "Your Etherscan API key."
      }
    }
  }
}