Solana Tracker
Solana RPC/Methods

getInflationReward RPC Method

Description

Returns the inflation / staking reward for a list of addresses for an epoch.

Parameters

  1. array (string, optional) - An array of addresses to query, as base-58 encoded strings
  2. object (array) - The configuration object with the following fields:
    • commitment (string, optional) - The level of commitment required for the query. The options include:
      • finalized - The node will query the most recent block confirmed by the supermajority of the cluster as having reached maximum lockout, meaning the cluster has recognized this block as finalized
      • confirmed - The node will query the most recent block that has been voted on by supermajority of the cluster
    • epoch (integer, optional) - An epoch for which the reward occurs. If omitted, the previous epoch will be used
    • minContextSlot (integer, optional) - The minimum slot that the request can be evaluated at

Returns

The result will be JSON object with the following fields:

  • epoch - The epoch during which the reward was received
  • effectiveSlot - The slot at which the rewards become active
  • amount - The reward value in lamports
  • postBalance - The account balance after the transaction in lamports
  • commission - The commission rate of the vote account at the time the reward was credited

Code Examples

curl "https://rpc-mainnet.solanatracker.io/?api_key=YOUR_API_KEY_HERE" \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{"jsonrpc":"2.0","id":1, "method":"getInflationReward", "params": [["ADDRESS_TO_SEARCH_1", "ADDRESS_TO_SEARCH_2"], {"epoch": 2}] }'

On this page