getPbftView

返回节点所在指定群组内的最新PBFT视图

参数

  • groupID: unsigned int - 群组ID

返回值

  • string - 最新的PBFT视图
  • 示例
  1. // Request
  2. curl -X POST --data '{"jsonrpc":"2.0","method":"getPbftView","params":[1],"id":1}' http://127.0.0.1:8545 |jq
  3. // Result
  4. {
  5. "id": 1,
  6. "jsonrpc": "2.0",
  7. "result": "0x1a0"
  8. }

注: FISCO BCOS支持PBFT共识Raft共识,当访问的区块链采用Raft共识时,该接口返回FISCO BCOS自定义错误响应如下:

  1. {
  2. "error": {
  3. "code": 7,
  4. "data": null,
  5. "message": "Only pbft consensus supports the view property"
  6. },
  7. "id": 1,
  8. "jsonrpc": "2.0"
  9. }