getClientVersion

返回节点的版本信息

参数

返回值

  • object - 版本信息,字段如下:
    • Build Time: string - 编译时间
    • Build Type: string - 编译机器环境
    • Chain Id: string - 链ID
    • FISCO-BCOS Version: string - 节点版本
    • Git Branch: string - 版本分支
    • Git Commit Hash: string - 版本最新commit哈希
    • Supported Version: string - 节点支持的版本
  • 示例
  1. // Request
  2. curl -X POST --data '{"jsonrpc":"2.0","method":"getClientVersion","params":[],"id":1}' http://127.0.0.1:8545 |jq
  3. // Result
  4. {
  5. "id": 83,
  6. "jsonrpc": "2.0",
  7. "result": {
  8. "Build Time": "20190106 20:49:10",
  9. "Build Type": "Linux/g++/RelWithDebInfo",
  10. "FISCO-BCOS Version": "2.0.0",
  11. "Git Branch": "master",
  12. "Git Commit Hash": "693a709ddab39965d9c39da0104836cfb4a72054"
  13. }
  14. }