> ## Documentation Index
> Fetch the complete documentation index at: https://docs.solanatracker.io/llms.txt
> Use this file to discover all available pages before exploring further.

# getInflationReward

> Runs the Solana RPC `getInflationReward` method.



## OpenAPI

````yaml getinflationreward post /
openapi: 3.1.0
info:
  title: Solana RPC
  version: 1.0.0
  description: Solana RPC HTTP method reference.
servers:
  - url: https://rpc-mainnet.solanatracker.io
    description: Mainnet RPC endpoint
security: []
paths:
  /:
    post:
      summary: Run `getInflationReward`
      description: Runs the Solana RPC `getInflationReward` method.
      operationId: getinflationreward
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                jsonrpc:
                  allOf:
                    - type: string
                      description: The JSON-RPC protocol version.
                      enum:
                        - '2.0'
                      example: '2.0'
                      default: '2.0'
                id:
                  allOf:
                    - type: string
                      description: A unique identifier for the request.
                      example: '1'
                      default: '1'
                method:
                  allOf:
                    - type: string
                      description: The name of the RPC method to invoke.
                      enum:
                        - getInflationReward
                      example: getInflationReward
                      default: getInflationReward
                params:
                  allOf:
                    - type: array
                      description: Parameters for the method.
                      default:
                        - - 6dmNQ5jwLeLk5REvio1JcMshcbvkYMwy26sJ8pbkvStu
                      items:
                        oneOf:
                          - type: array
                            description: >-
                              List of Solana addresses (validators or
                              delegators) to retrieve staking rewards for, as
                              base-58 encoded strings.
                            items:
                              type: string
                            example:
                              - 6dmNQ5jwLeLk5REvio1JcMshcbvkYMwy26sJ8pbkvStu
                              - BGsqMegLpV6n6Ve146sSX2dTjUMj3M92HnU8BbNRMhF2
                          - type: object
                            description: >-
                              Configuration object containing optional
                              parameters.
                            properties:
                              commitment:
                                type: string
                                description: The commitment level for the request.
                                enum:
                                  - confirmed
                                  - finalized
                                example: finalized
                              epoch:
                                type: integer
                                description: >-
                                  Specific Solana epoch number to retrieve
                                  rewards for. If omitted, returns the most
                                  recently distributed rewards.
                                example: 2
                              minContextSlot:
                                type: integer
                                description: >-
                                  The minimum slot that the request can be
                                  evaluated at.
                                example: 1000
              required:
                - jsonrpc
                - id
                - method
            examples:
              example:
                value:
                  jsonrpc: '2.0'
                  id: db16f277-1a22-41ff-9f85-f37e2cd77900
                  method: getInflationReward
                  params:
                    - - 6dmNQ5jwLeLk5REvio1JcMshcbvkYMwy26sJ8pbkvStu
      responses:
        '200':
          description: Successfully retrieved inflation reward information.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    allOf:
                      - type: string
                        description: The JSON-RPC protocol version.
                        enum:
                          - '2.0'
                        example: '2.0'
                  id:
                    allOf:
                      - type: string
                        description: Identifier matching the request.
                        example: '1'
                  result:
                    allOf:
                      - type: array
                        description: >-
                          Array of detailed staking reward information for each
                          requested account, in the same order as requested.
                        items:
                          oneOf:
                            - type: object
                              description: Solana staking reward details for this account.
                              properties:
                                epoch:
                                  type: integer
                                  description: >-
                                    Solana epoch number when these staking
                                    rewards were distributed.
                                  example: 2
                                effectiveSlot:
                                  type: integer
                                  description: >-
                                    Specific blockchain slot when these rewards
                                    were calculated and became effective.
                                  example: 224
                                amount:
                                  type: integer
                                  description: >-
                                    Staking reward amount in lamports (1 SOL =
                                    1,000,000,000 lamports) earned by this
                                    account.
                                  example: 2500
                                postBalance:
                                  type: integer
                                  description: >-
                                    Account balance in lamports after this
                                    staking reward was credited.
                                  example: 499999442500
                                commission:
                                  type: integer
                                  description: >-
                                    Validator commission percentage taken from
                                    delegator rewards (null for delegator
                                    accounts, 0-100 for validators).
                                  nullable: true
                                  example: 5
                            - type: 'null'
                              description: >-
                                Null if this account did not receive any staking
                                rewards during the specified epoch.
                              example: null
              examples:
                example:
                  value:
                    jsonrpc: '2.0'
                    id: db16f277-1a22-41ff-9f85-f37e2cd77900
                    result:
                      - epoch: 2
                        effectiveSlot: 224
                        amount: 2500
                        postBalance: 499999442500
                        commission: 5
      security:
        - ApiKeyQuery: []
components:
  securitySchemes:
    ApiKeyQuery:
      type: apiKey
      in: query
      name: api_key

````