Skip to content

Instantly share code, notes, and snippets.

@rockon1985
Last active September 17, 2018 08:01
Show Gist options
  • Select an option

  • Save rockon1985/ff19406bc860514d93784eb5a74ca6ad to your computer and use it in GitHub Desktop.

Select an option

Save rockon1985/ff19406bc860514d93784eb5a74ca6ad to your computer and use it in GitHub Desktop.
Intantiate chaincode
# Instantiate the chaincode
peer chaincode instantiate -o orderer-example-com:7050 --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example-com/tlsca.example-com-cert.pem -C buyer1seller1channel1 -n mycc2 -l node -v 2.0 -c '{"Args":["init","key", "test value"]}' -P "AND ('BuyerOneMSP.peer','SellerOneMSP.peer')"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment