getInflationReward RPC Method
Returns the inflation / staking reward for a list of addresses for an epoch
params
array
optional
An array of addresses to query, as base-58 encoded stringsobject
optional
Configuration object containing the following fields:commitment
The commitment describes how finalized a block is at that point in time. See Configuring State Commitment.
epoch
An epoch for which the reward occurs. If omitted, the previous epoch will be used
minContextSlot
The minimum slot that the request can be evaluated at
result
array
The result field will be a JSON array of objects containing:epoch
Epoch for which reward occurred
effectiveSlot
The slot in which the rewards are effective
amount
Reward amount in lamports
postBalance
Post balance of the account in lamports
commission
Vote account commission when the reward was credited
cURL
curl https://us-seattle.openverse.network/api -s -X \
POST -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getInflationReward",
"params": [
[
"6dmNQ5jwLeLk5REvio1JcMshcbvkYMwy26sJ8pbkvStu",
"BGsqMegLpV6n6Ve146sSX2dTjUMj3M92HnU8BbNRMhF2"
],
{
"epoch": 2
}
]
}
'
Response
{
"jsonrpc": "2.0",
"result": [
{
"epoch": 2,
"effectiveSlot": 224,
"amount": 2500,
"postBalance": 499999442500
},
null
],
"id": 1
}