⚡ Test Our Private Nodes of 40+ Blockchains just for $50!

coins coins coins coins
sol
Solana (SOL)

Method: POST getInflationReward

dropdown

# getInflationReward example for Solana (SOL)

POST getInflationReward

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

Parameters

array - array of string

An array of addresses to query, as base-58 encoded strings

Config - object

Optional.

Configuration object containing the following optional fields: - commitment: object (optional) - epoch: u64 (optional) - An epoch for which the reward occurs. If omitted, the previous epoch will be used

Request

curl --location --request POST 'https://sol.getblock.io/mainnet' \
--header 'x-api-key: YOUR-API-KEY' \
--header 'Content-Type: application/json' \
--data-raw '{"jsonrpc": "2.0",
"method": "getInflationReward",
"params": [["6dmNQ5jwLeLk5REvio1JcMshcbvkYMwy26sJ8pbkvStu", "BGsqMegLpV6n6Ve146sSX2dTjUMj3M92HnU8BbNRMhF2"],{"epoch": 2}],
"id": "getblock.io"}'


Response

{
    "jsonrpc": "2.0",
    "result": [
        {
            "amount": 2500,
            "effectiveSlot": 224,
            "epoch": 2,
            "postBalance": 499999442500
        }
    ],
    "id": "getblock.io"
}