Questions tagged [hyperledger-fabric]

Hyperledger Fabric is an implementation of blockchain technology. Use this tag for questions about this project.

Use this tag for questions about this project.

Another good idea is to reach out to the community at

Documentation can be found at

Refer development lifecycle and officially provided resources at

6206 questions
7
votes
1 answer

Block size and transaction per block in Hyperledger Fabric

What is the relationship between MaxMessageCount, AbsoluteMaxBytes, and PreferredMaxBytes? A block in fabric consists of a MaxMessageCount number of transaction or PreferredMaxBytes? What should be the value of these to get maximum throughput?
Subhankar
  • 692
  • 7
  • 25
7
votes
2 answers

Difference between Hyperledger Fabric and Hyperledger Iroha?

Both Hyperledger Fabric and Hyperledger Iroha are platforms for building distributed ledger applications. What are the main differences between them? When to choose one over the other to implement a blockchain solution?
Sahil
  • 461
  • 1
  • 9
  • 24
7
votes
2 answers

Get chaincode caller ID from the function InvokeChaincode() in Hyperledger Fabric Node SDK

Let's suppose the following network architecture: A -> Chaincode1 -> fabcar A is the application, Chaincode1 is a chaincode in Go and fabcar is a chaincode in Nodejs. They are on the same channel: "mychannel". When is performed the operation…
7
votes
2 answers

unable to find newEventHub function

I am new to hyperledger fabric. I have downloaded the fabric v1.2.0 and I tried to run fabcar example from the fabric-sample folder. My querying on the chaincode went well, but when I tried to invoke the chaincode I got the below error from the…
7
votes
6 answers

hyperledger fabric - How to remove a chaincode on peer?

I installed two chaincode on a peer: ☁ basic-network [master] ⚡ ../../bin/peer chaincode list --installed 2018-06-25 10:37:44.825 CST [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2018-06-25 10:37:44.825 CST [msp]…
Lin Du
  • 88,126
  • 95
  • 281
  • 483
7
votes
1 answer

Can not peer chaincode list in fabric

I started up a fabric sample network in my mac and install a chaincode in peer0.org1.example.com. after tap: docker exec -it cli bash and now I use peer chaincode -C myChannel list --instantiated But got the error message: Error: Error endorsing…
shaotine
  • 249
  • 3
  • 15
7
votes
6 answers

Fabric Error: failed to create deliver client: orderer client failed to connect to orderer.example.com:7050: failed to create new connection

There was an Hyperledger Fabric error updating the anchor peer in the Building Your First Network document. This error is as follows. Error: failed to create deliver client: orderer client failed to connect to orderer.example.com:7050: failed to…
huuu
  • 71
  • 1
  • 3
7
votes
1 answer

how we can call one chaincode from another chaincode in fabric 1.0 ?? if anyone having example please share

I want to call one chaincode from another chaincode in fabric 1.0 so I have some questions: 1) can we install two chaincode on single peer 2) if we install two chaincode on different peer, how we can call one into another? 3)if anybody having sample…
Tejal tandale
  • 87
  • 1
  • 10
7
votes
8 answers

FABRIC returns Error: Got unexpected status: BAD_REQUEST

From fabric document create-join-channel, when I execute the command peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls $CORE_PEER_TLS_ENABLED --cafile…
Jim Green
  • 1,088
  • 3
  • 15
  • 40
7
votes
2 answers

Hyperledger Fabric with docker not storing data after restart

I setup Hyperledger Fabric V0.6 with docker image. I wrote small chain code program and perform some operations. Data is getting stored and fetched on request from Hyperledger blockchain. I restart my chaincode program and data still persist.…
NGR
  • 1,230
  • 2
  • 15
  • 44
7
votes
1 answer

What does shim in fabric chaincode stand for?

I see lots of word "shim" in Hyperledger fabric chaincode samples like func (t *SimpleChaincode) Init(stub shim.ChaincodeStubInterface, function string, args []string) ([]byte, error) { which is imported from import ( "errors" "fmt" …
6
votes
1 answer

Hyperledger Fabric Ownership of the Orderer Organization

According to most examples, there are logically minimum 3 organizations (org1, org2, orderer). Actually there are only 2 physical organizations (org1, org2). Either one of the organizations or an agreed 3rd party has to hand over the orderer…
hsnkhrmn
  • 961
  • 7
  • 20
6
votes
3 answers

Hyperledger fabric 2.0 -chaincode as external service:Unknown chaincodeType: EXTERNAL

I am trying to set up the chain code as an external service as is specified in the official doc First thing is to set up the externalBuilder variable chaincode: externalBuilders: - name: my-golang-builder path: /builders/golang In my peer…
shamon shamsudeen
  • 5,466
  • 17
  • 64
  • 129
6
votes
2 answers

Hyperledger fabric Orderer receive permission denied when I trying to approve the chaincode

I'm trying to make the system run properly, by following after this tutorial - https://hyperledger-fabric.readthedocs.io/en/release-2.0/build_network.html When in my case the Hyperledger Fabric components run on Kubernetes and I'm running all the…
nirkov
  • 697
  • 10
  • 25
6
votes
1 answer

Can we run RAFT ordering node without tls in hyperledger fabric?

My current network has no TLS, deployed on Kubernetes. Currently, we are migrating from Kafka (1.4.0) to RAFT(1.4.4). TLS is not necessary for Kubernetes. Is it compulsory to have TLS enabled for the RAFT ordering node? If yes, Can I enable on the…
PAVAN
  • 771
  • 4
  • 14