问题
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