getInflationGovernor
Learn getInflationGovernor use cases, code examples, request parameters, response structure, and tips.
The getInflationGovernor
RPC method returns the current inflation governance parameters for the Solana cluster. These parameters define how new SOL is issued over time—shaping the network’s tokenomics, staking incentives, and long-term monetary policy.
✅ Common Use Cases
Economic Modeling Analyze how SOL issuance is structured over time to forecast total supply growth, dilution, and monetary policy effects.
Staking Reward Calculations While
getInflationRate
gives the current annual rate,getInflationGovernor
reveals the underlying inflation trajectory, which affects long-term staking returns.Tokenomics Transparency Understand how inflation is tapered and what portion is allocated to the Solana Foundation, helping projects and investors assess sustainability and incentive structures.
🛠Request Parameters
This method accepts an optional configuration object:
commitment
(string, optional): The commitment level for querying the ledger. Common values:finalized
(default)confirmed
processed
📦 Response Structure
The response includes an object with the following inflation parameters (all f64
floating-point numbers):
initial
f64
Initial annual inflation rate (e.g., 0.15
= 15%).
terminal
f64
Long-term terminal inflation rate (e.g., 0.015
= 1.5%).
taper
f64
Year-over-year decrease rate for inflation (e.g., 0.15
= 15% reduction each year).
foundation
f64
Portion of inflation allocated to the Solana Foundation (e.g., 0.05
= 5%).
foundationTerm
f64
Duration in years over which the foundation allocation is distributed.
💡 Example: Fetch Inflation Governance Parameters
{
"jsonrpc": "2.0",
"id": 1,
"method": "getInflationGovernor"
}
With optional commitment:
{
"jsonrpc": "2.0",
"id": 1,
"method": "getInflationGovernor",
"params": [
{ "commitment": "confirmed" }
]
}
Code Examples
const fetch = require('node-fetch');
async function getInflationGovernor(rpcUrl) {
try {
const response = await fetch(rpcUrl, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
jsonrpc: '2.0',
id: 1,
method: 'getInflationGovernor',
"params":[{"commitment":"confirmed"}]
}),
});
const data = await response.json();
// Print the exact full response
console.log('Full RPC Response:');
console.log(JSON.stringify(data, null, 2));
return data;
} catch (error) {
console.error('Error getting health:', error.message);
return null;
}
}
// Example usage
const RPC_URL = 'https://rpc.coinvera.io/?x-api-key=your-coinvera-x-api-key';
getInflationGovernor(RPC_URL);
Example Response
{
"jsonrpc": "2.0",
"result": {
"foundation": 0,
"foundationTerm": 0,
"initial": 0.08,
"taper": 0.15,
"terminal": 0.015
},
"id": 1
}
🧠Developer Tips
Static but Upgradable These parameters are typically set at genesis or through network upgrades, and do not change frequently unless through formal governance.
Foundation Allocation The
foundation
andfoundationTerm
define a predefined, temporary allocation of inflationary SOL to the Solana Foundation—supporting ecosystem funding and operations during the early lifecycle of the network.Understand Long-Term Staking Impacts These parameters control the future trajectory of staking rewards and inflation-driven issuance, making them critical inputs for long-term validator and delegator modeling.
Combine with
getInflationRate
Use in conjunction withgetInflationRate
to compare current effective rates vs. governed targets.
Last updated