Skip to content

Instantly share code, notes, and snippets.

@jt-nti
Last active June 16, 2018 17:17
Show Gist options
  • Save jt-nti/137a039eb21992136c3f3e54c5c50fa5 to your computer and use it in GitHub Desktop.
Save jt-nti/137a039eb21992136c3f3e54c5c50fa5 to your computer and use it in GitHub Desktop.
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"}]}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment