Tools, FAQ, Tutorials:
"configtxgen" Command - Build channel.tx
How to run "configtxgen" command to build a transaction message to create the channel in BYFN (Build Your First Network)?
✍: FYIcenter.com
You can follow this tutorial to run "configtxgen" command
to build a transaction message to create the channel in BYFN.
The "configtxgen" command file is located in the ../bin directory. It takes the configtx.yaml file as the input with the help of FABRIC_CFG_PATH environment variable:
$ cd hyperledger-binaries/fabric-samples/first-network $ export FABRIC_CFG_PATH=./ $ mkdir ./channel-artifacts $ ../bin/configtxgen -profile TwoOrgsChannel -channelID mychannel \ -outputCreateChannelTx ./channel-artifacts/channel.tx ...[common.tools.configtxgen] main -> INFO 001 Loading configuration ...[common.tools.configtxgen.localconfig] Load -> INFO 002 Loaded configuration: \ /home/fyicenter/hyperledger-binaries/fabric-samples/first-network/configtx.yaml ...[common.tools.configtxgen.localconfig] completeInitialization \ -> INFO 003 orderer type: solo ...[common.tools.configtxgen.localconfig] LoadTopLevel -> INFO 004 Loaded configuration: \ /home/fyicenter/hyperledger-binaries/fabric-samples/first-network/configtx.yaml ...[common.tools.configtxgen] doOutputChannelCreateTx -> INFO 005 Generating new channel configtx ...[common.tools.configtxgen] doOutputChannelCreateTx -> INFO 006 Writing new channel tx
The transaction message is generated in the ./channel-artifacts sub-directory and named as "channel.tx":
$ ls -l ./channel-artifacts -rw-r--r-- 1 fyicenter 12988 Apr 1 01:26 channel.tx
Â
⇒ "configtxgen" Command - Build *MSPanchors.tx
⇠"configtxgen" Command - Build genesis.block
⇑ Hyperledger Fabric Sample Networks
⇑⇑ Hyperledger Tutorials
2020-10-20, 928👍, 0💬
Popular Posts:
How to access URL template parameters from "context.Request.Matched Parameters"object in Azure API P...
Can You Specify the "new line" Character in Single-Quoted Strings? You can not specify the "new line...
Where is API Management Service on my Azure Portal? If your IT department has signed up for an Azure...
How to view API details on the Publisher Dashboard of an Azure API Management Service? You can follo...
How to read RSS validation errors at w3.org? If your RSS feed has errors, the RSS validator at w3.or...