Skip to content
Branch: master
Find file History

Marbles Network

This is an interactive and distributed, marble trading demo. List marbles for sale and exchange marbles between participants.

This business network defines:

Participant Player

Asset Marble

Transaction TradeMarble

Player participants are able to have Marble assets and trade these with TradeMarble transaction.

To test this Business Network Definition in the Test tab:

Create two Player participant:

  "$class": "org.hyperledger_composer.marbles.Player",
  "email": "",
  "firstName": "Jenny",
  "lastName": "Jones"
  "$class": "org.hyperledger_composer.marbles.Player",
  "email": "",
  "firstName": "Billy",
  "lastName": "Thompson"

Create a Marble asset:

  "$class": "org.hyperledger_composer.marbles.Marble",
  "marbleId": "marbleId:1234",
  "size": "SMALL",
  "color": "BLUE",
  "owner": ""

Submit a Transaction transaction:

  "$class": "org.hyperledger_composer.marbles.TradeMarble",
  "marble": "resource:org.hyperledger_composer.marbles.Marble#marbleId:1234",
  "newOwner": ""

This transaction has transferred marbleId:1234 from to



Hyperledger Project source code files are made available under the Apache License, Version 2.0 (Apache-2.0), located in the LICENSE file. Hyperledger Project documentation files are made available under the Creative Commons Attribution 4.0 International License (CC-BY-4.0), available at

You can’t perform that action at this time.