getInflationRate
All the specifications for getInflationRate RPC Method on Solana
Returns the specific inflation values for the current epoch.
Parameters required for this RPC call
No parameters required.
curl https://rpc.shyft.to?api_key=YOUR-API-KEY -s -X \
POST -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getInflationRate"
}
'import { Connection, PublicKey, clusterApiUrl } from "@solana/web3.js";
const connection = new Connection("https://rpc.shyft.to?api_key=YOUR-API-KEY", "confirmed");
let inflationRate = await connection.getInflationRate();
console.log(inflationRate);{
"jsonrpc": "2.0",
"result": {
"total": 0.149, // Total inflation
"validator": 0.148, // Inflation allocated to validators
"foundation": 0.001, // Inflation allocated to the foundation
"epoch": 100 // Epoch for which these values are valid
},
"id": 1
}Last updated
Was this helpful?