getInflationReward

getInflationReward RPC Method

post

Returns the inflation/staking reward for a list of addresses for an epoch.

Authorizations
Body
jsonrpcstring · enumRequired

JSON-RPC protocol version

Example: 2.0Possible values:
idone ofRequired

Request identifier that will be returned in the response

Example: 1
stringOptional
or
numberOptional
methodstring · enumRequired

The RPC method name

Example: getInflationRewardPossible values:
Responses
200
Successful Response
application/json
post
curl -X POST https://public.rpc.solanavibestation.com \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "getInflationReward",
    "params": [
      [
        "6dmNQ5jwLeLk5REvio1JcMshcbvkYMwy26sJ8pbkvStu",
        "BGsqMegLpV6n6Ve146sSX2dTjUMj3M92HnU8BbNRMhF2"
      ],
      {
        "epoch": 250
      }
    ]
  }'
{
  "jsonrpc": "2.0",
  "result": [
    {
      "epoch": 250,
      "effectiveSlot": 10800000,
      "amount": 2500,
      "postBalance": 499999442500,
      "commission": 5
    },
    null
  ],
  "id": 1
}

Last updated