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,040 points
26 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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
• 27,620 points

Related Questions In Blockchain

0 votes
1 answer
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
36 views
0 votes
1 answer
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
• 27,620 points
40 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
• 27,620 points
26 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.