---
updatedAt: 2025-11-12T01:01:41.000Z
agentTools:
  projectIndex: https://docs.blockberry.one/llms.txt
---

# getTransactionBlocksCount

The number of transaction blocks with Programmable Type. On Iota, several transactions can be bundled in a transaction block to be put on-chain as a single transaction input.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Iota mainnet API",
    "description": "This is the new API Module implementation. The IOTA Blockchain API is used to retrieve IOTA Blockchain data. In order to execute queries you need to get API Key and use it in header 'x-api-key'. However, before that you need to sign up on the explorer or company website. If an account is created on the website <strong>https://staketab.com/</strong> or <strong>https://iotascan.com/</strong>, the user will be granted the <strong>ROLE_USER</strong> role. After that you may fetch API KEY.",
    "termsOfService": "terms-of-service",
    "contact": {
      "name": "Staketab tech support",
      "url": "https://staketab.com/",
      "email": "support@staketab.com"
    },
    "license": {
      "name": "Apache 2.0",
      "url": "https://www.apache.org/licenses/LICENSE-2.0"
    },
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://api.blockberry.one/iota-mainnet",
      "description": "Production"
    }
  ],
  "security": [
    {
      "x-api-key": []
    }
  ],
  "paths": {
    "/v1/total/values/transaction-blocks": {
      "get": {
        "tags": [
          "Transaction Blocks"
        ],
        "summary": "getTransactionBlocksCount",
        "description": "The number of transaction blocks with Programmable Type. On Iota, several transactions can be bundled in a transaction block to be put on-chain as a single transaction input.",
        "operationId": "getTransactionBlocksCount",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "*/*": {
                "schema": {
                  "type": "integer",
                  "format": "int64"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "x-api-key": {
        "type": "apiKey",
        "name": "x-api-key",
        "in": "header"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```