https://github.com/mhbauer/fabric-query-examples
examples of using fabric-sdk-go for very basic queries
https://github.com/mhbauer/fabric-query-examples
hyperledger-fabric hyperledger-fabric-sdk hyperledger-fabric-sdk-go
Last synced: about 2 months ago
JSON representation
examples of using fabric-sdk-go for very basic queries
- Host: GitHub
- URL: https://github.com/mhbauer/fabric-query-examples
- Owner: MHBauer
- License: apache-2.0
- Created: 2019-03-27T01:21:55.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-27T01:48:56.000Z (about 6 years ago)
- Last Synced: 2025-02-09T05:18:24.673Z (4 months ago)
- Topics: hyperledger-fabric, hyperledger-fabric-sdk, hyperledger-fabric-sdk-go
- Language: Go
- Size: 4.34 MB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
The smallest working example I could make of some basic interactions with an already set up fabric network.
https://hyperledger-fabric.readthedocs.io/en/release-1.4/build_network.html
1. Start up the default first-network.
2. Start with querying the ledger by `go run query-ledger/main.go`. It
should pick up the `first-network.yaml` in this directory and print
out the basic details of the blockchain.I currently interact mainly with the fabric-chaincode-evm, which is a
go chaincode that has a nice invoke that takes only one argument. This
makes a very easy testcase for me, so you will have to adapt to the
default chaincode for first-network.Beyond querying the ledger, there is an example for interacting with
chaincode in `query-chaincode`/, along with a program that interacts
with both the ledger and the chaincode in one run in `query-both/`.