Tools, FAQ, Tutorials:
Basic Sample Business Network - SampleEvent
How to view SampleEvent emitted from Basic Sample Business Network?
✍: FYIcenter.com
You can follow this tutorial to view SampleEvent emitted from
Basic Sample Business Network.
Since SampleEvent is generated by the SampleTransaction process, it is recorded as a child object to the SampleTransaction record.
1. Open Hyperledger Composer Playground and go to Basic Sample Business Network home page, as shown in the previous tutorial.
2. Click "Test" tab. You see the test home page.
3. Click "All Transactions" in the TRANSACTIONS section on the left. You see a list of all transactions performed on the Basic Sample Business Network.
4. Click "View Record" of the last "SampleTransaction" record. You see the transaction processed previously:
{"$class": "org.example.basic.SampleTransaction",
"asset": "resource:org.example.basic.SampleAsset#1st_Asset",
"newValue": "100009.99",
"transactionId": "8effbfc1-1374-4080-9baf-5d9797ab00d7",
"timestamp": "2019-03-23T20:03:02.556Z"
}
5. Click "Event" tab. You see the of SampleEvent object generated from this transaction.
6. Click the expand icon. You see the SampleEvent JSON message:
{"$class": "org.example.basic.SampleEvent",
"asset": "resource:org.example.basic.SampleAsset#1st_Asset",
"oldValue": "100000.99",
"newValue": "100009.99",
"eventId": "d28c12db-1db1-4896-9999-327f5b56bb41#0",
"timestamp": "2019-03-23T20:41:02.930Z"
}
Â
⇒ Modify Business Network in Playground
⇠Basic Sample Business Network - SampleTransaction
2020-12-15, ∼1835🔥, 0💬
Popular Posts:
How to use the "send-one-way-request" Policy statement to call an extra web service for an Azure API...
How To Open Standard Output as a File Handle in PHP? If you want to open the standard output as a fi...
How to access Query String parameters from "context.Request.Url.Que ry"object in Azure API Policy? Q...
How to use the XML to JSON Conversion Tool at freeformatter.com? If you want to try the XML to JSON ...
How to build a PHP script to dump Azure AD 2.0 Authentication Response? If you are use the Azure-AD-...