command
Version:
v0.0.0-...-52ee9e7
Opens a new window with list of versions in this module.
Published: Aug 14, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 36
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
hyperledger
Write Chaincode - https://github.com/IBM-Blockchain/learn-chaincode/
- Setup VM https://github.com/hyperledger/fabric/blob/master/docs/dev-setup/devenv.md?cm_mc_uid=35478756853214604766575&cm_mc_sid_50200000=1465483110#setting-up-the-development-environment
- Start Hyperledger VM
- ssh vagrant@10.0.2.15 pwd: vagrant
Run Membership Servives
- cd /opt/gopath/src/github.com/hyperledger/fabric
- make membersrvc
- (cd membersrvc; ./membersrvc)
Run a validate peer
- cd $GOPATH/src/github.com/hyperledger/fabric
- make peer
- cd ./peer
- export CORE_SECURITY_ENABLED=true
- export CORE_SECURITY_PRIVACY=true
- ./peer node start --peer-chaincodedev
Authenticate on blockchain
- bcauth jim (pwd: 6avZQLwcUe9b)
Deploy a contract
- cd $GOPATH/src/github.com/hyperledger/fabric/peer
- export CORE_SECURITY_ENABLED=true
- export CORE_SECURITY_PRIVACY=true
- ./peer chaincode deploy -u jim -n mycc -c '{"Function":"init", "Args": ["a","100", "b", "200"]}'
Invoke a contract
./peer chaincode invoke -u jim -l golang -n mycc -c '{"Function": "invoke", "Args": ["a", "b", "10"]}'
Info about the chain
- bstatus
Read Blocks
- bcnode 0
Peers
bcpeers
Transactions
bctrans c3e1a653-decf-4a84-bd70-8e51425c5a40
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.