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

# getTransactionCount

> 台帳から現在のトランザクション数を返します。

## リクエストパラメータ

<ParamField body="commitment" type="string">
  トランザクションカウントを測定する確定性レベル（processed = recent, finalized = confirmed）。

  * `confirmed`
  * `finalized`
  * `processed`
</ParamField>

<ParamField body="minContextSlot" type="number">
  リクエストが評価できる最小のスロット。
</ParamField>


## OpenAPI

````yaml ja/openapi/rpc-http/getTransactionCount.yaml POST /
openapi: 3.1.0
info:
  title: Solana RPC API
  version: 1.0.0
  description: トランザクションボリューム指標APIは、ソラナブロックチェーンネットワークの活動とジェネシス以降の総処理オペレーションを追跡します。
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0.html
servers:
  - url: https://mainnet.helius-rpc.com
    description: メインネットRPCエンドポイント
  - url: https://devnet.helius-rpc.com
    description: デブネットRPCエンドポイント
security: []
paths:
  /:
    post:
      tags:
        - RPC
      summary: getTransactionCount
      description: >-
        ソラナブロックチェーンによってジェネシス以降に処理された総トランザクション数を取得します。このネットワーク活動メトリクスは、ブロックチェーンのスループットと歴史的なボリュームを提供し、ネットワークの全履歴を通じて正常に処理されたトランザクションの累積数を追跡します。ブロックチェーン分析、ネットワークモニタリングダッシュボード、スループット分析、ソラナの成長を追跡するアプリケーションに不可欠です。さまざまな確定性のレベルでクエリを実行できます。
      operationId: getTransactionCount
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                jsonrpc:
                  type: string
                  enum:
                    - '2.0'
                  description: JSON-RPCプロトコルバージョン。
                  example: '2.0'
                  default: '2.0'
                id:
                  type: string
                  description: リクエストのための一意の識別子。
                  example: '1'
                  default: '1'
                method:
                  type: string
                  enum:
                    - getTransactionCount
                  description: 呼び出すRPCメソッドの名前。
                  example: getTransactionCount
                  default: getTransactionCount
                params:
                  type: array
                  description: オプションの設定オブジェクト。
                  items:
                    type: object
                    description: リクエストの設定オプション。
                    properties:
                      commitment:
                        type: string
                        description: >-
                          トランザクション数を測定する確定性のレベル（processed = recent, finalized =
                          confirmed）。
                        enum:
                          - confirmed
                          - finalized
                          - processed
                        example: finalized
                      minContextSlot:
                        type: integer
                        description: リクエストが評価される可能性のある最小スロット。
                        example: 1000
      responses:
        '200':
          description: トランザクション数が正常に取得されました。
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                    description: JSON-RPCプロトコルバージョン。
                    enum:
                      - '2.0'
                    example: '2.0'
                  id:
                    type: string
                    description: リクエストと一致する識別子。
                    example: '1'
                  result:
                    type: integer
                    description: ネットワーク開始以来ソラナブロックチェーンによって処理されたトランザクションの総数。
                    example: 268
              examples:
                sampleResponse:
                  $ref: '#/components/examples/responseExample'
        '400':
          description: 不正なリクエスト - リクエストパラメータが無効または不正です。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32602
                  message: Invalid params
                id: '1'
        '401':
          description: 認証エラー - APIキーが無効または不足しています。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32001
                  message: Unauthorized
                id: '1'
        '429':
          description: リクエストが多すぎます - レート制限を超えました。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32005
                  message: Too many requests
                id: '1'
        '500':
          description: 内部サーバーエラー - サーバーでエラーが発生しました。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32603
                  message: Internal error
                id: '1'
        '503':
          description: サービス利用不可 - サービスが一時的に利用できません。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32002
                  message: Service unavailable
                id: '1'
        '504':
          description: ゲートウェイタイムアウト - リクエストがタイムアウトしました。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32003
                  message: Gateway timeout
                id: '1'
      security:
        - ApiKeyQuery: []
components:
  examples:
    responseExample:
      value:
        jsonrpc: '2.0'
        id: '1'
        result: 268
  schemas:
    ErrorResponse:
      type: object
      properties:
        jsonrpc:
          type: string
          description: JSON-RPCプロトコルバージョン。
          enum:
            - '2.0'
          example: '2.0'
        error:
          type: object
          properties:
            code:
              type: integer
              description: エラーコード。
              example: -32602
            message:
              type: string
              description: エラーメッセージ。
            data:
              type: object
              description: エラーに関する追加データ。
        id:
          type: string
          description: リクエストと一致する識別子。
          example: '1'
  securitySchemes:
    ApiKeyQuery:
      type: apiKey
      in: query
      name: api-key
      description: >-
        あなたのHelius
        APIキーです。無料で[ダッシュボード](https://dashboard.helius.dev/api-keys)から取得できます。

````