Generic put and get in hyperledger fabric

0 votes
I have worked on multichain and trying to start working on hyperledger fabric 1.0. I have this following code that i want to use in fabric. can i just use raw push to push raw data or should i do something else?
Jul 6, 2018 in Blockchain by slayer
• 29,370 points
516 views

1 answer to this question.

0 votes
For this, you have to write a chaincode to put and get data. you can use the following functions for that PutState(key string, value []byte) error GetState(key string) ([]byte, error)

You can check out the following tutorial to learn more:
https://hyperledger-fabric.readthedocs.io/en/latest/chaincode4ade.html
answered Jul 6, 2018 by digger
• 26,740 points

Related Questions In Blockchain

0 votes
1 answer

What are the differences between chain and state database in hyperledger fabric?

There are two place which "store" data ...READ MORE

answered Jul 11, 2018 in Blockchain by Shashank
• 10,400 points
2,268 views
0 votes
1 answer
+1 vote
2 answers
0 votes
1 answer

Smart contract limitations in Ethereum and Hyperledger Fabric

No, the contract cannot sign on behave of B. A ...READ MORE

answered Sep 11, 2018 in Blockchain by Christine
• 15,790 points
622 views
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,394 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
903 views
+1 vote
1 answer
0 votes
1 answer
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
750 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