A sample chaincode for Hyperledger/fabric version 1.1. This chaincode implements some features like below:
- list accounts.
- retrieve, create, update, delete an account.
- deposit to an account.
- remit from an account to another account.
- withdraw from an account.
- show the histories of an account.
fabric-payment-sample-api
fabric-payment-sample-docker
version | |
---|---|
go | 1.10 |
Hyperledger/fabric | 1.1.0-rc1 |
$ go get -d github.com/hyperledger/fabric/protos/peer
$ go get -u --tags nopkcs11 github.com/hyperledger/fabric/core/chaincode/shim
To avoid build failure, you have to get fabric/core/chaincode/shim
from nopkcs11 tag.
$ go get -u github.com/nmatsui/fabric-payment-sample-chaincode
$ go build --tags nopkcs11 fabric-payment.go
- Fork this project ( https://github.com/nmatsui/fabric-payment-sample-chaincode )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create new Pull Request
Copyright (c) 2018 Nobuyuki Matsui nobuyuki.matsui@gmail.com