How to get the transaction ID from Hyperledger Sawtooth

那年仲夏 提交于 2019-12-23 04:26:59

问题


When I am making a transaction with the JS sdk to my docker sawtooth node, I am getting a response which contains only a link which shows this data:

{
  "data": [
    {
      "id": "87be1095b29372fff3b46d4f0eb0f354514208d8ef612877bae0216e70d4931f302e2b2f3741d52e22acf92c7e3f3935775b503a43f45a7297d1ce5ad76b9bb2",
      "invalid_transactions": [],
      "status": "COMMITTED"
    }
  ],
  "link": "http://localhost:8008/batch_statuses?id=87be1095b29372fff3b46d4f0eb0f354514208d8ef612877bae0216e70d4931f302e2b2f3741d52e22acf92c7e3f3935775b503a43f45a7297d1ce5ad76b9bb2"
}

Now this id appears to be the batch-id. How can I get the transaction id e.g. to make a query to get this transaction only?

来源:https://stackoverflow.com/questions/52893764/how-to-get-the-transaction-id-from-hyperledger-sawtooth

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!