Tools, FAQ, Tutorials:
Basic Sample Business Network - SampleAsset
How to add new SampleAsset records in Basic Sample Business Network?
✍: FYIcenter.com
You can follow this tutorial to add new SampleAsset records in
Basic Sample Business Network.
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 "SampleAsset" in the ASSETS section on the left. You see a list of SampleAsset records.
4. Click "+Create New Participant" on the top right corner. You see the input form to create new asset.
5. Copy and paste the following JSON message. Note that the "owner" attribute needs to point to an existing SampleParticipant record: "resource:org.example.basic.SampleParticipant#Toby".
{ "$class": "org.example.basic.SampleAsset",
"assetId": "1st_Asset",
"owner": "resource:org.example.basic.SampleParticipant#Toby",
"value": "100000.99"
}
6. Click "Create New". You see a new SampleAsset record in Basic Sample Business Network.
Â
⇒ Basic Sample Business Network - SampleTransaction
⇠Basic Sample Business Network - SampleParticipant
2020-12-22, ∼1561🔥, 0💬
Popular Posts:
How to dump (or encode, serialize) a Python object into a JSON string using json.dumps()? The json.d...
What's Wrong with "while ($c=fgetc($f)) {}" in PHP? If you are using "while ($c=fgetc($f)) {}" to lo...
Where to find tutorials on PHP language? I want to know how to learn PHP. Here is a large collection...
How to use the Atom Online Validator at w3.org? w3.org feed validation service is provided at http:/...
How To Read Data from Keyboard (Standard Input) in PHP? If you want to read data from the standard i...