How can I traverse the blocks of transactions in hyperledger fabric

+2 votes

I want to get a list of all transactions in the ledger. I want to do this using chaincode. Is there any API that will help me do this?

May 5, 2018 in Blockchain by Shashank
• 10,400 points
5,373 views

2 answers to this question.

+2 votes
Best answer

For hyperledger fabric you can use query system chaincode and you can query starting from block 0 to block H where H is the ledger height that you can obtain using the QSCC call GetChainInfo.

https://github.com/hyperledger/fabric/blob/master/core/scc/qscc/query.go

Hope this helps!

To know more, Enroll with Blockchain training online today.

Thank You!!

answered May 8, 2018 by Rachel

selected Aug 3, 2018 by Omkar
how to run this chaincode
+1 vote

Traversing through the Blockchain will be complex. An easy way to get the list transactions from the World StateThe world state holds the current value of the attributes of a business object as a unique ledger state so it's easier than traversing through the Blockchain. 

answered Apr 24, 2019 by Rashmi

Related Questions In Blockchain

0 votes
1 answer
0 votes
1 answer

How blocks are linked in the Hyperledger Fabric blockchain?

The structure of block in Hyperledger Fabric ...READ MORE

answered Jul 3, 2018 in Blockchain by Omkar
• 69,220 points
1,576 views
0 votes
1 answer

How can i copy block aspects in hyperledger fabric?

There are three ways you can do ...READ MORE

answered Jul 6, 2018 in Blockchain by digger
• 26,740 points
787 views
0 votes
1 answer
0 votes
1 answer

Hyperledger Sawtooth vs Quorum in concurrency and speed Ask

Summary: Both should provide similar reliability of ...READ MORE

answered Sep 26, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
1,451 views
0 votes
1 answer

Invalid Batch or signature in Savtooth

This will solve your problem import org.apache.commons.codec.binary.Hex; Transaction txn ...READ MORE

answered Aug 1, 2018 in Blockchain by digger
• 26,740 points
1,004 views
+1 vote
1 answer
0 votes
1 answer

What technologies can be used to build private blockchain technologies?

Blockchain could be private or public. There ...READ MORE

answered May 8, 2018 in Blockchain by Robbie
501 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP