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

Latest commit

 

History

History
39 lines (27 loc) · 554 Bytes

File metadata and controls

39 lines (27 loc) · 554 Bytes

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"]
}