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

# getInflationReward

> Mengembalikan imbalan inflasi / staking untuk daftar alamat pada suatu epoch.

## Parameter Permintaan

<ParamField body="address" type="array" required>
  Daftar alamat Solana (validator atau delegator) yang imbalan staking-nya akan diambil, sebagai string yang dikodekan dengan base-58.
</ParamField>

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

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

<ParamField body="epoch" type="number">
  Nomor epoch Solana tertentu yang imbalannya akan diambil. Jika tidak ditentukan, mengembalikan imbalan yang terakhir didistribusikan.
</ParamField>

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


## OpenAPI

````yaml id/openapi/rpc-http/getInflationReward.yaml POST /
openapi: 3.1.0
info:
  title: API RPC Solana
  version: 1.0.0
  description: >-
    API analitik imbalan staking untuk mengambil dan menghitung pendapatan
    berbasis inflasi yang dibayarkan kepada delegator dan validator Solana
    selama epoch tertentu.
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0.html
servers:
  - url: https://mainnet.helius-rpc.com
    description: Endpoint RPC Mainnet
  - url: https://devnet.helius-rpc.com
    description: Endpoint RPC Devnet
security: []
paths:
  /:
    post:
      tags:
        - RPC
      summary: getInflationReward
      description: >
        Ambil informasi imbalan staking terperinci untuk validator dan akun
        delegator Solana.

        API staking penting ini menyediakan data akurat tentang imbalan SOL yang
        didistribusikan kepada

        akun tertentu selama epoch tertentu. Imbalan berbasis inflasi ini
        merupakan pendapatan dari

        partisipasi dalam konsensus proof-of-stake Solana, baik secara langsung
        sebagai validator maupun

        secara tidak langsung sebagai delegator. Mengembalikan jumlah imbalan,
        tarif komisi, data saldo setelah imbalan,

        dan informasi waktu untuk perhitungan imbal hasil staking yang akurat.
        Sangat penting untuk dasbor staking,

        pelacak imbal hasil, aplikasi dompet, alat pelaporan pajak, dan layanan
        apa pun yang melacak hasil

        dari aktivitas staking Solana.
      operationId: getInflationReward
      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:
                    - getInflationReward
                  example: getInflationReward
                  default: getInflationReward
                params:
                  type: array
                  description: Parameter untuk metode tersebut.
                  default:
                    - - 6dmNQ5jwLeLk5REvio1JcMshcbvkYMwy26sJ8pbkvStu
                  items:
                    oneOf:
                      - type: array
                        description: >-
                          Daftar alamat Solana (validator atau delegator) yang
                          imbalan staking-nya akan diambil, dalam bentuk string
                          yang dikodekan dengan base-58.
                        items:
                          type: string
                        example:
                          - 6dmNQ5jwLeLk5REvio1JcMshcbvkYMwy26sJ8pbkvStu
                          - BGsqMegLpV6n6Ve146sSX2dTjUMj3M92HnU8BbNRMhF2
                      - type: object
                        description: Objek konfigurasi yang berisi parameter opsional.
                        properties:
                          commitment:
                            type: string
                            description: Tingkat komitmen untuk permintaan.
                            enum:
                              - confirmed
                              - finalized
                            example: finalized
                          epoch:
                            type: integer
                            description: >-
                              Nomor epoch Solana tertentu yang imbalannya akan
                              diambil. Jika dihilangkan, mengembalikan imbalan
                              yang terakhir didistribusikan.
                            example: 2
                          minContextSlot:
                            type: integer
                            description: Slot minimum tempat permintaan dapat dievaluasi.
                            example: 1000
      responses:
        '200':
          description: Informasi imbalan inflasi 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: >-
                      Larik informasi imbalan staking terperinci untuk setiap
                      akun yang diminta, dalam urutan yang sama seperti
                      permintaan.
                    items:
                      oneOf:
                        - type: object
                          description: Detail imbalan staking Solana untuk akun ini.
                          properties:
                            epoch:
                              type: integer
                              description: >-
                                Nomor epoch Solana saat imbalan staking ini
                                didistribusikan.
                              example: 2
                            effectiveSlot:
                              type: integer
                              description: >-
                                Slot blockchain tertentu saat imbalan ini
                                dihitung dan mulai berlaku.
                              example: 224
                            amount:
                              type: integer
                              description: >-
                                Jumlah imbalan staking dalam lamport (1 SOL =
                                1.000.000.000 lamport) yang diperoleh akun ini.
                              example: 2500
                            postBalance:
                              type: integer
                              description: >-
                                Saldo akun dalam lamport setelah imbalan staking
                                ini dikreditkan.
                              example: 499999442500
                            commission:
                              type: integer
                              description: >-
                                Persentase komisi validator yang dipotong dari
                                imbalan delegator (null untuk akun delegator,
                                0–100 untuk validator).
                              nullable: true
                              example: 5
                        - type: 'null'
                          description: >-
                            Null jika akun ini tidak menerima imbalan staking
                            apa pun selama epoch yang ditentukan.
                          example: null
        '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: Invalid params
                id: '1'
        '401':
          description: Tidak Diotorisasi - Kunci API tidak valid atau tidak tersedia.
          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 untuk sementara tidak tersedia.
          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 cocok 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).

````