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

> 最近のパフォーマンスサンプルのリストを、スロットの逆順で返します。パフォーマンスサンプルは60秒ごとに取得され、特定の時間枠で発生するトランザクション数とスロット数を含みます。



## OpenAPI

````yaml ja/openapi/rpc-http/getRecentPerformanceSamples.yaml POST /
openapi: 3.1.0
info:
  title: Solana RPC API
  version: 1.0.0
  description: >-
    Solanaブロックチェーンのスループット、トランザクション処理速度、リアルタイムのヘルスメトリクスを監視するためのネットワークパフォーマンス分析APIです。
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0.html
servers:
  - url: https://mainnet.helius-rpc.com
    description: Mainnet RPCエンドポイント
  - url: https://devnet.helius-rpc.com
    description: Devnet RPCエンドポイント
security: []
paths:
  /:
    post:
      tags:
        - RPC
      summary: getRecentPerformanceSamples
      description: >
        Solanaブロックチェーンの最近の運用効率に関する詳細なパフォーマンス指標を取得します。

        このネットワーク分析APIは、トランザクションスループット、スロット生産、投票活動を定期的なサンプリング間隔で示す時系列データを提供します。ネットワークの健全性の監視、ブロックチェーン容量の分析、パフォーマンストレンドの追跡、ネットワーク信頼性の確認に不可欠です。

        メトリクスは、全体のトランザクション量と、特に投票以外のトランザクションの双方について洞察を提供し、コンセンサスのオーバーヘッドと実際のユーザー操作をネットワーク上で区別するのに役立ちます。
      operationId: getRecentPerformanceSamples
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - jsonrpc
                - id
                - method
              properties:
                jsonrpc:
                  type: string
                  description: JSON-RPCプロトコルのバージョン。
                  enum:
                    - '2.0'
                  example: '2.0'
                  default: '2.0'
                id:
                  type: string
                  description: リクエストの一意の識別子。
                  example: '1'
                  default: '1'
                method:
                  type: string
                  description: 呼び出すRPCメソッドの名前。
                  enum:
                    - getRecentPerformanceSamples
                  example: getRecentPerformanceSamples
                  default: getRecentPerformanceSamples
                params:
                  type: array
                  description: 返すサンプルの数を制限するためのオプションのパラメータ。
                  default:
                    - 4
                  items:
                    type: integer
                    description: 取得する過去のパフォーマンスサンプルの間隔の数（最大720、最大12時間）。
                    example: 4
      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: array
                    description: パフォーマンスサンプルのリスト。
                    items:
                      type: object
                      description: パフォーマンスサンプルデータ。
                      properties:
                        slot:
                          type: integer
                          description: このパフォーマンスサンプリング期間の終了時のSolanaブロックチェーンスロット。
                          example: 348125
                        numTransactions:
                          type: integer
                          description: >-
                            このサンプリングウィンドウ中に処理されたトランザクションの総数（ユーザートランザクションとバリデータ投票の両方を含む）。
                          example: 126
                        numNonVoteTransactions:
                          type: integer
                          description: この期間に処理された実際のユーザートランザクション（バリデータコンセンサス投票を除く）の数。
                          example: 1
                        samplePeriodSecs:
                          type: integer
                          format: int16
                          description: 通常60秒間隔であるこのパフォーマンス測定ウィンドウの持続時間（秒単位）。
                          example: 60
                        numSlots:
                          type: integer
                          description: このサンプリング期間中に正常に生成されたSolanaスロットの数。ブロックチェーンの進捗を示す。
                          example: 126
        '400':
          description: Bad Request - 無効なリクエストパラメータまたは形式が不正なリクエスト。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32602
                  message: Invalid params
                id: '1'
        '401':
          description: Unauthorized - 無効または欠落しているAPIキー。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32001
                  message: Unauthorized
                id: '1'
        '429':
          description: Too Many Requests - レート制限を超過しました。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32005
                  message: Too many requests
                id: '1'
        '500':
          description: Internal Server Error - サーバーでエラーが発生しました。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32603
                  message: Internal error
                id: '1'
        '503':
          description: Service Unavailable - サービスは一時的に利用できません。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32002
                  message: Service unavailable
                id: '1'
        '504':
          description: Gateway Timeout - リクエストがタイムアウトしました。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                jsonrpc: '2.0'
                error:
                  code: -32003
                  message: Gateway timeout
                id: '1'
      security:
        - ApiKeyQuery: []
components:
  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)で無料で取得できます。

````