Supply & Inflation
getInflationRate
Returns the current inflation rate of the network
Parameters
This method does not take any parameters.
Response
Code Examples
Basic Request
Using web3.js
Notes
- Returns the current inflation rate and its allocation
- Total inflation is split between validators and foundation
- Inflation rates are expressed as percentages
- The response is immediate as it reads from the current state
- Inflation rates can change between epochs
Best Practices
- Use this method to understand current network inflation
- Cache results when appropriate to reduce RPC load
- Consider the impact of inflation on staking rewards
- Monitor for changes in inflation rates
- Use in conjunction with other inflation-related methods
Common Errors
Code | Message | Solution |
---|---|---|
-32601 | Method not found | Verify you’re connected to a Solana RPC node |
-32007 | Inflation information unavailable | Node may be bootstrapping or syncing |
Use Cases
-
Inflation Tracking
-
Staking Analysis
-
Inflation Alerts