getInflationReward RPC Method
Description
Returns the inflation / staking reward for a list of addresses for an epoch.
Parameters
array
(string, optional) - An array of addresses to query, as base-58 encoded stringsobject
(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 finalizedconfirmed
- 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 usedminContextSlot
(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 receivedeffectiveSlot
- The slot at which the rewards become activeamount
- The reward value in lamportspostBalance
- The account balance after the transaction in lamportscommission
- The commission rate of the vote account at the time the reward was credited