Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Write gRPC client for Hyperledger fabric V1.0

Hyperledger Fabric v1.0 provides basic API using Protocol Buffers over gRPC for applications to interact with the blockchain network.

I have seen many examples using CLI commands, but hard to find any GO/JAVA client who are communicating with Blockchain using gRPC. Earlier it was supporting REST APIs but seem like they stopped support for it in newly released V1.0 versionDocumention.

If anyone has any idea about how to write gRPC client for fabric client in GO/Java language, please help.

like image 257
NGR Avatar asked Dec 11 '25 21:12

NGR


1 Answers

I just run the example in v1.0 doc OK.

curl -L https://raw.githubusercontent.com/hyperledger/fabric/master/examples/sfhackfest/sfhackfest.tar.gz -o sfhackfest.tar.gz 2> /dev/null; tar -xvf sfhackfest.tar.gz

curl -OOOOOO https://raw.githubusercontent.com/hyperledger/fabric-sdk-node/v1.0-alpha/examples/balance-transfer/{config.json,deploy.js,helper.js,invoke.js,query.js,package.json}

This example using node.js interact with peers.

Thus, I will read these javascripts. Maybe I can find some track of HTTP GET/POST rest API.

like image 128
king3000 Avatar answered Dec 14 '25 17:12

king3000