How to get the transaction ID from Hyperledger Saw

2019-06-13 16:06发布

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?

0条回答
登录 后发表回答