Solana RPC API手册

在线工具推荐: Three.js AI纹理开发包 - YOLO合成数据生成器 - GLTF/GLB在线编辑 - 3D模型格式在线转换 - 可编程3D场景编辑器

getInflationRate

getInflationRate方法返回当前周期的指定通胀值。

请求参数

响应结果

result字段为JSON对象,结构如下:

  • total: <f64>, 总通胀
  • validator: <f64>, 分配给验证人的通胀
  • foundation: <f64>, 分配给基金会的通胀
  • epoch: <f64>, 上述值有效的周期

示例代码

请求:

curl http://localhost:8899 -X POST -H "Content-Type: application/json" -d '
  {"jsonrpc":"2.0","id":1, "method":"getInflationRate"}

响应:

{"jsonrpc":"2.0","result":{"epoch":100,"foundation":0.001,"total":0.149,"validator":0.148},"id":1}