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

> requestAirdrop mengirim airdrop lamport ke akun Solana mana pun di devnet — danai dompet pengujian dengan SOL sebelum mengirim transaksi selama pengembangan.

## Parameter Permintaan

<ParamField body="address" type="string" required>
  Alamat dompet Solana (kunci publik) untuk menerima airdrop token SOL pengujian.
</ParamField>

<ParamField body="value" type="number" required>
  Jumlah SOL yang akan dikirim melalui airdrop dalam lamport (1 SOL = 1,000,000,000 lamport) untuk pengujian.
</ParamField>

<ParamField body="commitment" type="string">
  Tingkat komitmen untuk permintaan tersebut.

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


## OpenAPI

````yaml id/openapi/rpc-http/requestAirdrop.yaml POST /
openapi: 3.1.0
info:
  title: Solana RPC API
  version: 1.0.0
  description: >-
    API Solana yang berfokus pada pengembangan untuk meminta airdrop token SOL
    di jaringan pengujian guna mendanai akun bagi pengembangan, pengujian, dan
    eksperimen aplikasi.
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0.html
servers:
  - url: https://devnet.helius-rpc.com
    description: Endpoint RPC Devnet
security: []
paths:
  /:
    post:
      tags:
        - RPC
      summary: requestAirdrop
      description: >
        Minta token SOL gratis di jaringan pengujian Solana untuk keperluan
        pengembangan dan pengujian.

        API khusus pengembangan ini memungkinkan pengembang mendanai dompet
        dengan SOL di lingkungan devnet dan testnet untuk membangun dan menguji
        aplikasi Solana tanpa menggunakan dana nyata. API ini sangat penting
        untuk pengembangan lokal, pipeline CI/CD, pengujian otomatis, dan
        eksperimen dengan fitur Solana baru. SOL yang diperoleh melalui airdrop
        dapat digunakan untuk membayar biaya transaksi, membuat akun, dan
        menguji logika keuangan di lingkungan nonproduksi.
      operationId: requestAirdrop
      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:
                    - requestAirdrop
                  description: Nama metode RPC yang akan dipanggil.
                  example: requestAirdrop
                  default: requestAirdrop
                params:
                  type: array
                  description: Parameter untuk permintaan airdrop.
                  default:
                    - 83astBRguLMdt2h5U1Tpdq5tjFoJ6noeGwaY3mDLVcri
                    - 1000000000
                  items:
                    oneOf:
                      - type: string
                        description: >-
                          Alamat dompet Solana (kunci publik) yang akan menerima
                          airdrop token SOL pengujian.
                        example: 83astBRguLMdt2h5U1Tpdq5tjFoJ6noeGwaY3mDLVcri
                      - type: integer
                        description: >-
                          Jumlah SOL untuk airdrop dalam lamport (1 SOL =
                          1.000.000.000 lamport) guna keperluan pengujian.
                        example: 1000000000
                      - type: object
                        description: Objek konfigurasi untuk airdrop.
                        properties:
                          commitment:
                            type: string
                            description: Tingkat commitment untuk permintaan.
                            enum:
                              - confirmed
                              - finalized
                              - processed
                            example: finalized
      responses:
        '200':
          description: Berhasil meminta airdrop.
          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 sesuai dengan permintaan.
                    example: '1'
                  result:
                    type: string
                    description: >-
                      Tanda tangan transaksi Solana dari airdrop yang telah
                      selesai, yang dapat digunakan untuk memverifikasi bahwa
                      SOL telah diterima.
                    example: >-
                      5VERv8NMvzbJMEkV8xnrLkEaWRtSz9CosKDYjCJjBRnbJLgp8uirBgmQpjKhoR4tjF3ZpRzrFmBV6UjKdiSZkQUW
              examples:
                responseExample:
                  value:
                    jsonrpc: '2.0'
                    id: '1'
                    result: >-
                      5VERv8NMvzbJMEkV8xnrLkEaWRtSz9CosKDYjCJjBRnbJLgp8uirBgmQpjKhoR4tjF3ZpRzrFmBV6UjKdiSZkQUW
        '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 Server Internal - 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:
  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 sesuai dengan permintaan.
          example: '1'
  securitySchemes:
    ApiKeyQuery:
      type: apiKey
      in: query
      name: api-key
      description: >-
        Kunci API Helius Anda. Anda dapat memperolehnya secara gratis di
        [dasbor](https://dashboard.helius.dev/api-keys).

````