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,170 points
43 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,550 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
70 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
• 26,550 points
77 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,550 points
40 views