TriportRPC

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`](./getInflationGovernor.md); for per-account staking rewards, see [`getInflationReward`](./getInflationReward.md).

Parameters

This method takes no parameters.

Returns

getInflationRate return value
FieldType
resultobject

Examples

curl https://<your-endpoint>/ \
  -X POST -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"getInflationRate","params":[]}'
const res = await fetch("https://<your-endpoint>/", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
  "id": 1,
  "method": "getInflationRate",
  "params": [],
  "jsonrpc": "2.0"
}),
});
const data = await res.json();
import requests
resp = requests.post("https://<your-endpoint>/", 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

  1. Transport: HTTP (JSON-RPC).
  2. Networks: mainnet, devnet, testnet.
  3. 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.