getInflationRate
Returns the specific inflation values for the current epoch.
This method will use 30 Compute Units.
Parameters
None.
Returns
result The result will be an object with the following fields:
epochThe epoch during which these values remain valid.foundationThe proportion of total inflation allocated to the foundation.totalThe total inflation.validatorThe portion of inflation designated for validators.
// Result
{
"jsonrpc": "2.0",
"result": {
"epoch": 741,
"foundation": 0.0,
"total": 0.047237663454945594,
"validator": 0.047237663454945594
},
"id": 1
}curl https://mainnet.solana.validationcloud.io/v1/<YOUR_API_KEY_HERE> \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1, "method":"getInflationRate"}'
curl https://devnet.solana.validationcloud.io/v1/<YOUR_API_KEY_HERE> \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1, "method":"getInflationRate"}'
Last updated
Was this helpful?