getInflationRate RPC Method
Returns the specific inflation values for the current epoch
Parameters #
None
Result #
The result field will be a JSON object with the following fields:
total: <f64>
- total inflationvalidator: <f64>
-inflation allocated to validatorsfoundation: <f64>
- inflation allocated to the foundationepoch: <u64>
- epoch for which these values are valid
Code sample #
curl https://api.devnet.solana.com -X POST -H "Content-Type: application/json" -d '
{"jsonrpc":"2.0","id":1, "method":"getInflationRate"}
'
Response #
{
"jsonrpc": "2.0",
"result": {
"epoch": 100,
"foundation": 0.001,
"total": 0.149,
"validator": 0.148
},
"id": 1
}