RPC MethodsHTTPgetInflationReward

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.

commitmentstring

Commitment level.

epochu64

An epoch for which the reward occurs.

minContextSlotnumber

The minimum slot.

Result

array

Array of objects (or null) with epoch, effectiveSlot, amount, postBalance, and commission.

Example

Request
JSON
curl "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
}