Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

linuxone-community-cloud/chaincode_example02

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

chaincode_example02

A simple chaincode example from hyperledger fabric project

https://github.com/hyperledger/fabric-samples.git

Install parameters:

Initialize the chaincode. Create account A with 100 units and B with 200 unites.

{
"function":"init",
"args":["a","100","b","200"]
}

Invoke parameters:

Trigger transaction, make payment of 100 units from A to B

{
"function":"invoke",
"args":["a","b","100"]
}

Query parameters:

Query the current units of A

{
"function":"query",
"args":["a"]
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages