> ## 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

> Mengembalikan jumlah transaksi saat ini dari ledger.

## Parameter Permintaan

<ParamField body="commitment" type="string">
  Tingkat finalitas yang digunakan untuk mengukur jumlah transaksi (processed = terbaru, finalized = terkonfirmasi).

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

<ParamField body="minContextSlot" type="number">
  Slot minimum tempat permintaan dapat dievaluasi.
</ParamField>


## OpenAPI

````yaml id/openapi/rpc-http/getTransactionCount.yaml POST /
openapi: 3.1.0
info:
  title: Solana RPC API
  version: 1.0.0
  description: >-
    API metrik volume transaksi untuk melacak aktivitas jaringan blockchain
    Solana dan total operasi yang diproses sejak genesis.
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0.html
servers:
  - url: https://mainnet.helius-rpc.com
    description: Titik akhir RPC Mainnet
  - url: https://devnet.helius-rpc.com
    description: Titik akhir RPC Devnet
security: []
paths:
  /:
    post:
      tags:
        - RPC
      summary: getTransactionCount
      description: >
        Mengambil jumlah total transaksi yang diproses oleh blockchain Solana
        sejak genesis.

        Metrik aktivitas jaringan ini memberikan wawasan tentang throughput
        blockchain dan volume

        historis dengan melacak jumlah kumulatif transaksi yang berhasil
        diproses sepanjang

        riwayat jaringan. Metrik ini penting untuk analitik blockchain, dasbor
        pemantauan jaringan,

        analisis throughput, dan aplikasi yang melacak pertumbuhan Solana dari
        waktu ke waktu.

        Hasil dapat dikueri pada berbagai tingkat komitmen untuk mendapatkan
        tingkat finalitas yang berbeda.
      operationId: getTransactionCount
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                jsonrpc:
                  type: string
                  enum:
                    - '2.0'
                  description: Versi protokol JSON-RPC.
                  example: '2.0'
                  default: '2.0'
                id:
                  type: string
                  description: Pengidentifikasi unik untuk permintaan.
                  example: '1'
                  default: '1'
                method:
                  type: string
                  enum:
                    - getTransactionCount
                  description: Nama metode RPC yang akan dipanggil.
                  example: getTransactionCount
                  default: getTransactionCount
                params:
                  type: array
                  description: Objek konfigurasi opsional.
                  items:
                    type: object
                    description: Opsi konfigurasi untuk permintaan.
                    properties:
                      commitment:
                        type: string
                        description: >-
                          Tingkat finalitas untuk mengukur jumlah transaksi
                          (processed = terbaru, finalized = terkonfirmasi).
                        enum:
                          - confirmed
                          - finalized
                          - processed
                        example: finalized
                      minContextSlot:
                        type: integer
                        description: Slot minimum tempat permintaan dapat dievaluasi.
                        example: 1000
      responses:
        '200':
          description: Jumlah transaksi berhasil diambil.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                    description: Versi protokol JSON-RPC.
                    enum:
                      - '2.0'
                    example: '2.0'
                  id:
                    type: string
                    description: Pengidentifikasi yang cocok dengan permintaan.
                    example: '1'
                  result:
                    type: integer
                    description: >-
                      Jumlah total transaksi yang diproses oleh blockchain
                      Solana sejak jaringan diluncurkan.
                    example: 268
              examples:
                sampleResponse:
                  $ref: '#/components/examples/responseExample'
        '400':
          description: >-
            Permintaan Tidak Valid - Parameter permintaan tidak valid atau
            format permintaan salah.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32602
                  message: Invalid params
                id: '1'
        '401':
          description: Tidak Diotorisasi - Kunci API tidak valid atau tidak ada.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32001
                  message: Unauthorized
                id: '1'
        '429':
          description: Terlalu Banyak Permintaan - Batas laju terlampaui.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32005
                  message: Too many requests
                id: '1'
        '500':
          description: Kesalahan Internal Server - Terjadi kesalahan pada server.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32603
                  message: Internal error
                id: '1'
        '503':
          description: Layanan Tidak Tersedia - Layanan tidak tersedia untuk sementara.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32002
                  message: Service unavailable
                id: '1'
        '504':
          description: Waktu Tunggu Gateway Habis - Waktu tunggu permintaan habis.
          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: Versi protokol JSON-RPC.
          enum:
            - '2.0'
          example: '2.0'
        error:
          type: object
          properties:
            code:
              type: integer
              description: Kode kesalahan.
              example: -32602
            message:
              type: string
              description: Pesan kesalahan.
            data:
              type: object
              description: Data tambahan tentang kesalahan.
        id:
          type: string
          description: Pengidentifikasi yang cocok dengan permintaan.
          example: '1'
  securitySchemes:
    ApiKeyQuery:
      type: apiKey
      in: query
      name: api-key
      description: >-
        Kunci API Helius Anda. Anda bisa mendapatkannya secara gratis di
        [dasbor](https://dashboard.helius.dev/api-keys).

````