getInflationReward RPC Method
Please note that for this RPC method, the array size is limited to 5 for free accounts and 1005 for all paid accounts, including Starters, Growth, and Business plans, subject to the method's maximum array size restrictions.
Parameters
array
string
An array of addresses to query, as base-58 encoded strings
object
array
The configuration object with the following fields:
commitment
string
The level of commitment required for the query. The options include:
finalized
string
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
string
The node will query the most recent block that has been voted on by supermajority of the cluster
epoch
integer
An epoch for which the reward occurs. If omitted, the previous epoch will be used
minContextSlot
integer
The minimum slot that the request can be evaluated at
Returns
result
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
Request
1curl https://docs-demo.solana-mainnet.quiknode.pro/ \2-X POST \3-H "Content-Type: application/json" \4--data '{"jsonrpc":"2.0","id":1, "method":"getInflationReward", "params": [["ADDRESS_TO_SEARCH_1", "ADDRESS_TO_SEARCH_2"], {"epoch": 2}] }'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free