1. Home
  2. Docs
  3. Paralism 节点 RESTAPI
  4. 15. GetDataOfCurrentConsensus 获取当前运行中共识详细信息

15. GetDataOfCurrentConsensus 获取当前运行中共识详细信息

* 例子:http://127.0.0.1:8080/GetDataOfCurrentConsensus

* 返回例子:

当idle状态时 
{
  "curBuddyNo":301,
  "nodeState":"idle"
}
当localbuddy时 返回链数据
{
  "curBuddyNo":301,
  "nodeState":"localBuddy",
  "blockNum":"3"
}
当globalbuddy时 返回链条数,链信息 
{
  "curBuddyNo":301,
  "nodeState":"globalBuddy",
  "chainNum":"2"
}
Was this article helpful to you? Yes No