Skip to content

Instantly share code, notes, and snippets.

View nherbaut's full-sized avatar

Nicolas Herbaut nherbaut

View GitHub Profile
@jt-nti
jt-nti / org.hyperledger.composer.system.AddAsset.txt
Last active June 16, 2018 17:17
Hyperledger Composer command line to add an asset: the power of system transactions!
composer transaction submit --card admin@basic-sample-network -d '{"$class": "org.hyperledger.composer.system.AddAsset", "targetRegistry": "resource:org.hyperledger.composer.system.AssetRegistry#org.example.basic.SampleAsset", "resources": [{"$class": "org.example.basic.SampleAsset", "assetId": "newAsset", "owner": "resource:org.example.basic.SampleParticipant#bob", "value": "101"}]}'