Solana
Solana
Solana
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
getInflationRate reports how fast new SOL is being minted on Solana during the epoch in progress. Because Solana advances epochs roughly every couple of days, the inflation rate steps down over time along the network's tapering schedule, and this method gives you the value that applies right now. POST a JSON-RPC 2.0 request to https://solana.therpc.io/YOUR_API_KEY and the node returns the inflation rate for the current epoch as an object: total (the overall annualized inflation), validator (the portion that flows to stakers and validators), foundation (the portion reserved for the foundation), and epoch (the epoch number these figures describe).
validator, the share of SOL inflation that rewards delegators and validators.validator versus foundation shares to show users exactly where newly minted SOL goes.total against epoch to chart how Solana's inflation rate steps down over time as the schedule tapers.此方法不需要任何参数,传入空数组 [] 即可。
| 类型 | 描述 |
|---|---|
| object | { total, validator, foundation, epoch }. |
| 错误码 | 错误信息 | 原因 |
|---|---|---|
-32603 | Internal error | The node hit an internal error serving the request — retry, and reduce the requested range/encoding if it persists. |
getInflationReward and vote-account data before quoting a personal yield.epoch; if you need a historical or forward-looking view, track the value per epoch and account for the taper rather than assuming today's number holds for the whole year.