getInflationGovernor
Returns the current inflation governor configuration, which controls the inflation schedule of the Solana network. This includes the initial inflation rate, terminal rate, taper rate, and the proportion of inflation allocated to the foundation and validators. Understanding these parameters is critical for staking yield calculations, tokenomics analysis, and financial projections.
Parameters
| # | Type | Required | Description |
|---|---|---|---|
| 1 | object | No | Configuration object |
Configuration object fields:
| Field | Type | Description |
|---|---|---|
commitment | string | Commitment level: processed, confirmed, or finalized |
Response
Returns an object:
| Field | Type | Description |
|---|---|---|
initial | f64 | Initial inflation percentage from time 0 |
terminal | f64 | Terminal inflation percentage |
taper | f64 | Rate per year at which inflation is lowered |
foundation | f64 | Percentage of total inflation allocated to the foundation |
foundationTerm | f64 | Duration of foundation pool inflation in years |
Code Examples
cURL
1curl http://[IP_ADDRESS]:[PORT] -X POST -H "Content-Type: application/json" -d '{
2 "jsonrpc": "2.0",
3 "id": 1,
4 "method": "getInflationGovernor",
5 "params": []
6}'TypeScript
1const response = await fetch("http://[IP_ADDRESS]:[PORT]", {
2 method: "POST",
3 headers: { "Content-Type": "application/json" },
4 body: JSON.stringify({
5 jsonrpc: "2.0",
6 id: 1,
7 method: "getInflationGovernor",
8 params: []
9 }),
10});
11const { result } = await response.json();
12console.log("Initial inflation:", (result.initial * 100) + "%");Python
1import requests
2
3response = requests.post("http://[IP_ADDRESS]:[PORT]", json={
4 "jsonrpc": "2.0",
5 "id": 1,
6 "method": "getInflationGovernor",
7 "params": []
8})
9result = response.json()["result"]
10print(f"Initial inflation: {result['initial']*100}%")Rust
1use reqwest::Client;
2use serde_json::json;
3
4#[tokio::main]
5async fn main() -> Result<(), Box<dyn std::error::Error>> {
6 let client = Client::new();
7 let res = client.post("http://[IP_ADDRESS]:[PORT]")
8 .json(&json!({
9 "jsonrpc": "2.0",
10 "id": 1,
11 "method": "getInflationGovernor",
12 "params": []
13 }))
14 .send().await?
15 .text().await?;
16 println!("{}", res);
17 Ok(())
18}Example Response
1{
2 "jsonrpc": "2.0",
3 "result": {
4 "initial": 0.08,
5 "terminal": 0.015,
6 "taper": 0.15,
7 "foundation": 0.05,
8 "foundationTerm": 7.0
9 },
10 "id": 1
11}