Solana RPC API手册

getFeeRateGovernor

getFeeRateGovernor方法返回根库中的费率治理信息。

请求参数

响应结果

result字段为包含以下字段的对象:

  • burnPercent: <u8>, 收的手续费中要销毁的比例
  • maxLamportsPerSignature: <u64>, 下一槽位lamportsPerSignature的最大值
  • minLamportsPerSignature: <u64>, 下一槽位lamportsPerSignature的最小值
  • targetLamportsPerSignature: <u64>, 集群期望的费率
  • targetSignaturesPerSlot: <u64>, 集群期望的签名率

示例代码

请求:

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

响应:

{
  "jsonrpc": "2.0",
  "result": {
    "context": {
      "slot": 54
    },
    "value": {
      "feeRateGovernor": {
        "burnPercent": 50,
        "maxLamportsPerSignature": 100000,
        "minLamportsPerSignature": 5000,
        "targetLamportsPerSignature": 10000,
        "targetSignaturesPerSlot": 20000
      }
    }
  },
  "id": 1
}