node-red-contrib-fabriccomposer v0.0.1
node-red-contrib-fabric-composer
A node red output node that allows you to create assets or participants and submit transactions. Note : This will only work if you are running node red locally. It won't work if you are using node red on bluemix.
##Example Usage This example uses the Car Auction Sample Network that can be obtained from here
The Car Auction Sample, simulates a car auction. It has two kinds of participant. An Auctioneer, who is responsible for conducting the auction, and a member who can bid on cars in the auction. In this example we will create a participant, the participant .
Deploy the Car Auction Sample Network using the playground or on the command line (If you don't know how to do this go here)
Enter the connection profile name, business network identifier, participant Id, and participant password on the fabric-composer-out node.
Use an inject node and set it to use JSON and enter the following JSON
{"$class": "org.acme.vehicle.auction.Member", "balance": 1234, "email": "Joe-Blogs@org.acme.com", "firstName": "Joe", "lastName": "Blogs" }
- Using the playground or command line you should now be able to see the participant that has been created.
8 years ago