getInflationRate
Returns the specific inflation values for the current epoch
Common use cases
| Economic monitoring dashboards | Display current network inflation metrics alongside validator performance data to provide operators with real-time economic context for reward calculations. |
| Historical inflation tracking | Poll and store inflation rate values over time to analyze trends in network tokenomics and validator reward distribution patterns. |
| Validator reward estimation | Combine inflation rate with stake amounts to calculate expected validator earnings and APY for delegator decision-making tools. |
Parameters
No parameters required.
Request
- cURL
- JavaScript
- Python
curl https://solana-mainnet.api.syndica.io/api-key/YOUR_API_KEY \
-X POST \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "getInflationRate"
}'
// Using fetch
const response = await fetch('https://solana-mainnet.api.syndica.io/api-key/YOUR_API_KEY', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
"jsonrpc": "2.0",
"id": 1,
"method": "getInflationRate"
})
});
const data = await response.json();
console.log(data);
import requests
import json
url = 'https://solana-mainnet.api.syndica.io/api-key/YOUR_API_KEY'
headers = {'Content-Type': 'application/json'}
data = {
"jsonrpc": "2.0",
"id": 1,
"method": "getInflationRate"
}
response = requests.post(url, headers=headers, data=json.dumps(data))
print(response.json())
Replace mainnet with devnet in the URL to query devnet instead.
Response
{
"jsonrpc": "2.0",
"result": {
"total": 0.149,
"validator": 0.148,
"foundation": 0.001,
"epoch": 100
},
"id": 1
}
Response Fields
total (f64)
Total inflation
validator (f64)
Inflation allocated to validators
foundation (f64)
Inflation allocated to the foundation
epoch (u64)
Epoch for which these values are valid
Related Methods
getInflationGovernor
Returns inflation governor parameters defining the schedule and policy. Pair with getInflationRate to compare configured policy against actual current rates for the epoch.
getInflationReward
Returns inflation rewards earned by specific addresses in a given epoch. Use getInflationRate to understand the overall distribution before querying individual rewards.
getEpochInfo
Returns current epoch information including slot and timing data. Correlate with getInflationRate to contextualize when inflation values apply and track epoch-to-epoch changes.
External Resources
- Solana Official Documentation
- Solana Inflation Design - Official documentation explaining Solana's inflation schedule, validator reward distribution, and foundation allocation mechanisms.