Returns the inflation reward credited to each supplied address for an epoch. Depending on the supplied address, this may be a staking reward or a voting reward.
Source
$ curl https://api.devnet.solana.com -s -X \> POST -H "Content-Type: application/json" -d '> {> "jsonrpc": "2.0",> "id": 1,> "method": "getInflationReward",> "params": [> [> "6dmNQ5jwLeLk5REvio1JcMshcbvkYMwy26sJ8pbkvStu",> "BGsqMegLpV6n6Ve146sSX2dTjUMj3M92HnU8BbNRMhF2"> ],> {> "epoch": 800,> "commitment": "finalized"> }> ]> }> '
params
arrayrequired
An array of addresses to query, as base-58 encoded strings
objectoptional
Configuration object containing the following fields:
result
Response
{"jsonrpc": "2.0","result": [{"epoch": 2,"effectiveSlot": 224,"amount": 2500,"postBalance": 499999442500,"commission": null},null],"id": 1}
array
The result field will be a JSON array whose elements are either reward objects
or null when no reward data is available for the corresponding input address:
Is this page helpful?