Supply & Inflation
getInflationReward
Returns the inflation reward for a list of addresses for an epoch
Parameters
An array of addresses to query, as base-58 encoded strings
Response
Code Examples
Basic Request
Using web3.js
Using Python
Notes
- Returns inflation rewards for a list of addresses
- Results are returned as an array in the same order as the input addresses
- A null value in the result array means that the address has not received rewards
- Commission field is only present for validators (null for regular accounts)
- Rewards are calculated at the end of each epoch
Best Practices
- Provide a list of valid addresses to avoid null responses
- Specify the epoch parameter if you need historical reward data
- Handle null values in the response array appropriately
- Use this method to track rewards for staking accounts
- Handle network errors and retry when appropriate