- Go 1.14+ installation or later
Download fabric images
./scripts/bootstrap.sh -s -b
Start the fabric network
./scripts/network.sh up
Clean the fabric network
./scripts/network.sh down
Running the test suite
go test -test.run TestFabSdkProvider_CreateChannel
go test -test.run TestFabSdkProvider_JoinChannel
go test -test.run TestFabSdkProvider_InstallCC
go test -test.run TestFabSdkProvider_InstantiateCC
go test -test.run TestFabSdkProvider_InvokeCC
go test -test.run TestFabSdkProvider_QueryCC
go build -o fabric-connector run/main.go
./fabric-connector chaincode invoke -C mychannel -n mycc -c '{"Args":["move","a","b","10","test1"]}'
./fabric-connector chaincode query -C mychannel -n mycc -c '{"Args":["query","a"]}'