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

# getRecentPerformanceSamples

> getRecentPerformanceSamples mengembalikan sampel performa Solana dalam urutan slot terbalik — jumlah transaksi dan slot per jendela 60 detik, untuk mengukur TPS.



## OpenAPI

````yaml id/openapi/rpc-http/getRecentPerformanceSamples.yaml POST /
openapi: 3.1.0
info:
  title: Solana RPC API
  version: 1.0.0
  description: >-
    API analitik performa jaringan untuk memantau throughput blockchain Solana,
    laju pemrosesan transaksi, dan metrik kesehatan waktu nyata selama periode
    waktu terkini.
  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: getRecentPerformanceSamples
      description: >
        Ambil metrik performa terperinci tentang efisiensi operasional terkini
        blockchain Solana.

        API analitik jaringan ini menyediakan data deret waktu yang menunjukkan
        throughput transaksi, produksi slot,

        dan aktivitas pemungutan suara dalam interval pengambilan sampel
        reguler. Data ini sangat penting untuk memantau kesehatan jaringan,

        menganalisis kapasitas blockchain, melacak tren performa, dan
        memverifikasi keandalan jaringan.

        Metrik tersebut memberikan wawasan tentang volume transaksi secara
        keseluruhan dan secara khusus transaksi

        nonpemungutan suara, sehingga membantu membedakan antara overhead
        konsensus dan operasi pengguna yang sebenarnya di jaringan.
      operationId: getRecentPerformanceSamples
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - jsonrpc
                - id
                - method
              properties:
                jsonrpc:
                  type: string
                  description: Versi protokol JSON-RPC.
                  enum:
                    - '2.0'
                  example: '2.0'
                  default: '2.0'
                id:
                  type: string
                  description: Pengidentifikasi unik untuk permintaan.
                  example: '1'
                  default: '1'
                method:
                  type: string
                  description: Nama metode RPC yang akan dipanggil.
                  enum:
                    - getRecentPerformanceSamples
                  example: getRecentPerformanceSamples
                  default: getRecentPerformanceSamples
                params:
                  type: array
                  description: >-
                    Parameter opsional untuk membatasi jumlah sampel yang
                    dikembalikan.
                  default:
                    - 4
                  items:
                    type: integer
                    description: >-
                      Jumlah interval sampel performa historis yang akan diambil
                      (maksimum 720, mewakili hingga 12 jam).
                    example: 4
      responses:
        '200':
          description: Sampel performa 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: array
                    description: Daftar sampel performa.
                    items:
                      type: object
                      description: Data sampel performa.
                      properties:
                        slot:
                          type: integer
                          description: >-
                            Slot blockchain Solana pada akhir periode
                            pengambilan sampel performa ini.
                          example: 348125
                        numTransactions:
                          type: integer
                          description: >-
                            Jumlah total transaksi yang diproses selama rentang
                            pengambilan sampel ini, termasuk transaksi pengguna
                            dan suara validator.
                          example: 126
                        numNonVoteTransactions:
                          type: integer
                          description: >-
                            Jumlah transaksi pengguna aktual (tidak termasuk
                            suara konsensus validator) yang diproses dalam
                            periode ini.
                          example: 1
                        samplePeriodSecs:
                          type: integer
                          format: int16
                          description: >-
                            Durasi rentang pengukuran performa ini dalam detik,
                            biasanya dalam interval 60 detik.
                          example: 60
                        numSlots:
                          type: integer
                          description: >-
                            Jumlah slot Solana yang berhasil diproduksi selama
                            periode pengambilan sampel ini, yang menunjukkan
                            kemajuan blockchain.
                          example: 126
        '400':
          description: >-
            Permintaan Buruk - Parameter permintaan tidak valid atau format
            permintaan salah.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32602
                  message: Parameter tidak valid
                id: '1'
        '401':
          description: Tidak Terotorisasi - Kunci API tidak valid atau tidak ada.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32001
                  message: Tidak terotorisasi
                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: Terlalu banyak permintaan
                id: '1'
        '500':
          description: Kesalahan Server Internal - Terjadi kesalahan pada server.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32603
                  message: Kesalahan internal
                id: '1'
        '503':
          description: Layanan Tidak Tersedia - Layanan untuk sementara tidak tersedia.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32002
                  message: Layanan tidak tersedia
                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: Waktu tunggu gateway habis
                id: '1'
      security:
        - ApiKeyQuery: []
components:
  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 tersebut.
        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).

````