Inflation
getInflationReward
Returns the inflation / staking reward for a list of addresses for an epoch.
Parameters
addressesarray required An array of addresses to query, as base-58 encoded strings.
configobject optional Configuration object.
commitmentstringCommitment level.
epochu64An epoch for which the reward occurs.
minContextSlotnumberThe minimum slot.
Result
arrayArray of objects (or null) with epoch, effectiveSlot, amount, postBalance, and commission.
Example
Request
JSONcurl "https://eu.fluxrpc.com?key=<your-API-key>" -s -X POST -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getInflationReward",
"params": [
["6dmNQ5jwLeLk5REvio1JcMshcbvkYMwy26sJ8pbkvStu", "BGsqMegLpV6n6Ve146sSX2dTjUMj3M92HnU8BbNRMhF2"],
{ "commitment": "finalized", "epoch": 2 }
]
}'Response
JSON{
"jsonrpc": "2.0",
"result": [
{
"amount": 2500,
"effectiveSlot": 224,
"epoch": 2,
"postBalance": 499999442500
},
null
],
"id": 1
}