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

# requestAirdrop

> Pubkeyに対してlamportsのエアドロップを要求します。

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

<ParamField body="address" type="string" required>
  エアドロップされるテストSOLトークンを受け取るSolanaウォレットアドレス（公開鍵）。
</ParamField>

<ParamField body="value" type="number" required>
  テストのためのlamports単位でのSOLのエアドロップ量（1 SOL = 1,000,000,000 lamports）。
</ParamField>

<ParamField body="commitment" type="string">
  リクエストのコミットメントレベル。

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


## OpenAPI

````yaml ja/openapi/rpc-http/requestAirdrop.yaml POST /
openapi: 3.1.0
info:
  title: Solana RPC API
  version: 1.0.0
  description: >-
    アプリケーション開発、テスト、実験のためにアカウントに資金を提供するために、テストネットワーク上でSOLトークンエアドロップをリクエストする開発者向けのSolana
    API。
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0.html
servers:
  - url: https://devnet.helius-rpc.com
    description: Devnet RPCエンドポイント
security: []
paths:
  /:
    post:
      tags:
        - RPC
      summary: requestAirdrop
      description: >
        開発とテストのためにSolanaテストネットワークで無料のSOLトークンをリクエストします。

        この開発専用APIを使用すると、開発者はdevnetおよびtestnet環境でウォレットにSOLを資金提供して、実際の資金を使用せずにSolanaアプリケーションを構築およびテストできます。ローカル開発、CI/CDパイプライン、自動テスト、および新しいSolana機能の実験に不可欠です。エアドロップされたSOLは、取引手数料の支払い、アカウントの作成、および非本番環境での金融ロジックのテストに使用できます。
      operationId: requestAirdrop
      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:
                    - requestAirdrop
                  description: 呼び出すRPCメソッドの名前。
                  example: requestAirdrop
                  default: requestAirdrop
                params:
                  type: array
                  description: エアドロップリクエストのパラメータ。
                  default:
                    - 83astBRguLMdt2h5U1Tpdq5tjFoJ6noeGwaY3mDLVcri
                    - 1000000000
                  items:
                    oneOf:
                      - type: string
                        description: テストSOLトークンのエアドロップを受け取るSolanaウォレットアドレス（公開鍵）。
                        example: 83astBRguLMdt2h5U1Tpdq5tjFoJ6noeGwaY3mDLVcri
                      - type: integer
                        description: >-
                          テスト用にエアドロップするSOLの量をlamportsで指定（1 SOL = 1,000,000,000
                          lamports）。
                        example: 1000000000
                      - type: object
                        description: エアドロップの設定オブジェクト。
                        properties:
                          commitment:
                            type: string
                            description: リクエストのコミットメントレベル。
                            enum:
                              - confirmed
                              - finalized
                              - processed
                            example: finalized
      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: string
                    description: 完了したエアドロップのSolanaトランザクション署名で、SOLが受け取られたことを確認するのに使用できます。
                    example: >-
                      5VERv8NMvzbJMEkV8xnrLkEaWRtSz9CosKDYjCJjBRnbJLgp8uirBgmQpjKhoR4tjF3ZpRzrFmBV6UjKdiSZkQUW
              examples:
                responseExample:
                  value:
                    jsonrpc: '2.0'
                    id: '1'
                    result: >-
                      5VERv8NMvzbJMEkV8xnrLkEaWRtSz9CosKDYjCJjBRnbJLgp8uirBgmQpjKhoR4tjF3ZpRzrFmBV6UjKdiSZkQUW
        '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:
  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)で無料で取得できます。

````