getInflationGovernor
getInflationGovernor
方法返回当前的通胀治理信息。
请求参数
<object>
- (可选) Commitment
响应结果
result字段为JSON对象,包含以下字段:
- initial:
<f64>
, 初始时刻的通胀百分比 - terminal:
<f64>
, 终止时刻的通胀百分比 - taper:
<f64>
, 每年降低的通胀比率,利用创世配置中的目标槽位时间计算 - foundation:
<f64>
, 分配给基金会的通胀比例 - foundationTerm:
<f64>
, 基金会池的通胀周期,以年为单位
示例代码
请求:
curl http://localhost:8899 -X POST -H "Content-Type: application/json" -d '
{"jsonrpc":"2.0","id":1, "method":"getInflationGovernor"}
响应:
{
"jsonrpc": "2.0",
"result": {
"foundation": 0.05,
"foundationTerm": 7,
"initial": 0.15,
"taper": 0.15,
"terminal": 0.015
},
"id": 1
}