getClientVersion

返回节点的版本信息

参数

返回值

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