get Inflation Reward
Returns the inflation reward paid to a list of stake accounts for a given epoch.
getInflationReward looks up the staking reward credited to one or more stake accounts for a specific epoch: the lamport amount paid, the post-payout balance, and the validator commission applied.
Rewards are recorded only for epochs where the account was staked and a reward was distributed; otherwise the corresponding array slot is null.
Parameters
params is a JSON array, with values in this order: addresses, config.
Stake account addresses to look up, as base-58 encoded strings.
Optional configuration.
Show propertiesProperties
Bank state to read reward history from.
finalizedconfirmedprocessedEpoch to query rewards for. Defaults to the previous epoch (the most recent one with a finalized reward payout).
Minimum slot the node must have processed before answering.
Result
An array with one entry per input address, in the same order, each either a reward record or null.
Show one ofOne of
Show propertiesProperties
Epoch the reward was paid for.
Slot at which the reward was credited.
Reward amount in lamports.
Stake account balance in lamports immediately after the reward was applied.
Validator commission (0-100) in effect when the reward was calculated.
Notes
- A
nullslot does not mean the address is invalid; it usually means the account was not staked, or not yet activated, during the requested epoch. - Older epochs cost more to query, since reward data ages out of the node's hottest cache.