getInflationReward - Solana

getInflationReward. Retrieves information about the inflation rewards earned by a specific account

getInflationReward - solana [Value: 341CU]
Retrieves information about the inflation rewards earned by a specific account
Use cases

Use cases

  • Retrieve inflation rewards for staking accounts
  • Analyze rewards data to optimize staking strategies
  • Monitor earned rewards for financial reporting
Constraints

Constraints

  • Limited to inflation rewards for specific account
  • Subject to API call rate limitations
  • Potential delays in retrieving reward information
Get started
Unlock Access to 50+ chains
Boost your app's speed and reliability with dRPC - get your access API key

Language

Request
Examples
curl https://solana.drpc.org \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{"jsonrpc":"2.0","id":1, "method":"getInflationReward", "params": [["ADDRESS_TO_SEARCH_1", "ADDRESS_TO_SEARCH_2"], {"epoch": 2}] }'
Copy
Response
200
{
  "jsonrpc": "2.0",
  "result": [
    {
      "epoch": 2,
      "effectiveSlot": 12345678,
      "amount": 1000,
      "postBalance": 500000,
      "commission": 5
    },
    {
      "epoch": 2,
      "effectiveSlot": 12345678,
      "amount": 1500,
      "postBalance": 600000,
      "commission": 10
    }
  ],
  "id": 1
}
Copy

Request params

idinteger
jsonrpcstring
methodstring
Parametersarray
array
minContextSlotobject
The minimum slot number at which the request can be evaluated.
commitmentstring
The level of commitment required for the query
  • finalized - The node will query the most recent block confirmed by supermajority of the cluster as having reached maximum lockout, meaning the cluster has recognized this block as finalized
  • confirmed - The node will query the most recent block that has been voted on by supermajority of the cluster
  • processed - The node will query its most recent block. Note that the block may not be complete

Response

200
The inflation rewards earned by an account

Response params

object
idinteger
jsonrpcstring
resultstring
object
epochinteger
The epoch in which the reward was issued.
effectiveSlotinteger
The slot number at which the rewards become effective.
amountinteger
The reward amount in lamports.
postBalanceinteger
The account balance in lamports after receiving the reward.
commissioninteger
The commission rate of the vote account when the reward was credited.