getInflationRate
Last updated:
getInflationRate returns the specific inflation values for the current
epoch: a total rate plus the split between the portion paid to validators
and the portion paid to the foundation. All three are annualized rates expressed
as fractions — 0.0846 means an 8.46% annualized rate, not 0.0846%.
Use it to display current network inflation, estimate staking yield, or feed
reward calculations. The values are epoch-scoped: the returned epoch field
tells you which epoch they apply to, so clients that cache the result should
re-fetch when the cluster advances to a new epoch.
This method takes no parameters and is inexpensive — it is a standard read
method available on every tier. For the parameters that govern how these rates
change over time, see getInflationGovernor; for
per-account staking rewards, see getInflationReward.
Parameters
This method takes no parameters.
Returns
| Field | Type |
|---|---|
| result | object |
Examples
curl https://triport.io/sol \
-X POST -H 'Content-Type: application/json' \
-H 'Authorization: Bearer <api-key>' \
-d '{"id":1,"method":"getInflationRate","params":[],"jsonrpc":"2.0"}'const res = await fetch("https://triport.io/sol", {
method: "POST",
headers: { "Content-Type": "application/json", Authorization: "Bearer <api-key>" },
body: JSON.stringify({
"id": 1,
"method": "getInflationRate",
"params": [],
"jsonrpc": "2.0"
}),
});
const data = await res.json();import requests
resp = requests.post(
"https://triport.io/sol",
headers={"Authorization": "Bearer <api-key>"},
json={"id":1,"method":"getInflationRate","params":[],"jsonrpc":"2.0"},
)
print(resp.json()){
"id": 1,
"result": {
"epoch": 990,
"total": 0.037848843017430626,
"validator": 0.037848843017430626,
"foundation": 0
},
"jsonrpc": "2.0"
}Usage
- Transport: HTTP (JSON-RPC).
- Networks: mainnet, devnet, testnet.
- Credit cost: 1 per call.
FAQ
- What does getInflationRate do?
- Returns the annualized inflation rates (total, validator, and foundation) for the current epoch on the Solana cluster.
- How many credits does getInflationRate cost?
- getInflationRate costs 1 credit(s) per call on Triport by default.
- Is getInflationRate available over WebSocket?
- getInflationRate is an HTTP JSON-RPC method.