Exploring the structure of a sample blockchain network

  1. Let's start with the name.cto model file. Model files define the assets, participants, transactions, and events in our business network. Remember that, after each step, you need to deploy the changes. Now we'll see some screenshots that will illustrate the process:

  1. Let's use the following code to create the participants, transactions, and events:
// **  * Sample business network definition.  */ namespace org.example.basic  asset SampleAsset identified by assetId {   o String assetId   --> SampleParticipant owner   o Double value } participant SampleParticipant identified by participantId { ...

Get Hands-On IoT Solutions with Blockchain now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.