{"id":37112092,"url":"https://github.com/studyzy/fabric-sdk-go","last_synced_at":"2026-01-14T13:16:11.166Z","repository":{"id":57559699,"uuid":"304705101","full_name":"studyzy/fabric-sdk-go","owner":"studyzy","description":null,"archived":false,"fork":true,"pushed_at":"2020-11-19T09:42:46.000Z","size":18392,"stargazers_count":1,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"gm","last_synced_at":"2024-06-22T05:59:38.827Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://wiki.hyperledger.org/display/fabric","language":"Go","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"hyperledger/fabric-sdk-go","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/studyzy.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":"SECURITY.md","support":null}},"created_at":"2020-10-16T18:13:30.000Z","updated_at":"2021-11-30T11:52:56.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/studyzy/fabric-sdk-go","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/studyzy/fabric-sdk-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/studyzy%2Ffabric-sdk-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/studyzy%2Ffabric-sdk-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/studyzy%2Ffabric-sdk-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/studyzy%2Ffabric-sdk-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/studyzy","download_url":"https://codeload.github.com/studyzy/fabric-sdk-go/tar.gz/refs/heads/gm","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/studyzy%2Ffabric-sdk-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28420936,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-14T13:16:10.455Z","updated_at":"2026-01-14T13:16:11.158Z","avatar_url":"https://github.com/studyzy.png","language":"Go","readme":"# Hyperledger Fabric Client SDK for Go\n\n[![Release](https://img.shields.io/github/release/hyperledger/fabric-sdk-go.svg?style=flat-square)](https://github.com/studyzy/fabric-sdk-go/releases/latest)\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://raw.githubusercontent.com/hyperledger/fabric-sdk-go/master/LICENSE)\n[![GoDoc](https://godoc.org/github.com/studyzy/fabric-sdk-go?status.svg)](https://godoc.org/github.com/studyzy/fabric-sdk-go)\n\n[![Build Status](https://dev.azure.com/hyperledger/fabric-sdk-go/_apis/build/status/hyperledger.fabric-sdk-go?branchName=master)](https://dev.azure.com/hyperledger/fabric-sdk-go/_build/latest?definitionId=19\u0026branchName=master)\n[![codecov](https://codecov.io/gh/hyperledger/fabric-sdk-go/branch/master/graph/badge.svg)](https://codecov.io/gh/hyperledger/fabric-sdk-go)\n[![Go Report Card](https://goreportcard.com/badge/github.com/studyzy/fabric-sdk-go)](https://goreportcard.com/report/github.com/studyzy/fabric-sdk-go)\n\nThis SDK enables Go developers to build solutions that interact with [Hyperledger Fabric](http://hyperledger-fabric.readthedocs.io/en/latest/).\n\n## Getting started\n\nObtain the client SDK packages for Fabric and Fabric CA.\n\n```bash\ngo get github.com/studyzy/fabric-sdk-go\n```\n\nYou're good to go, happy coding! Check out the examples for usage demonstrations.\n\n### Documentation\n\nSDK documentation can be viewed at [GoDoc](https://godoc.org/github.com/studyzy/fabric-sdk-go).\n\nThe packages intended for end developer usage are within the pkg/client folder along with the main SDK package (pkg/fabsdk).\n\nIf you wish to use the Fabric 'Gateway' programming model, then the API is in the pkg/gateway folder.\n\n### Examples\n\n- [E2E Test](test/integration/e2e/end_to_end.go): Basic example that uses SDK to query and execute transaction\n- [Ledger Query Test](test/integration/pkg/client/ledger/ledger_queries_test.go): Basic example that uses SDK to query a channel's underlying ledger\n- [Multi Org Test](test/integration/e2e/orgs/multiple_orgs_test.go): An example that has multiple organisations involved in transaction\n- [Dynamic Endorser Selection](test/integration/pkg/fabsdk/provider/sdk_provider_test.go): An example that uses dynamic endorser selection (based on chaincode policy)\n- [E2E PKCS11 Test](test/integration/e2e/pkcs11/e2e_test.go): E2E Test using a PKCS11 crypto suite and configuration\n- [CLI](https://github.com/securekey/fabric-examples/tree/master/fabric-cli/): An example CLI for Fabric built with the Go SDK.\n- More examples needed!\n\n### Community\n\n- Discussion is happening in [Rocket Chat](https://chat.hyperledger.org/channel/fabric-sdk-go).\n- Issue tracking is handled in [Jira](https://jira.hyperledger.org/secure/RapidBoard.jspa?projectKey=FAB\u0026rapidView=7\u0026view=planning).\n\n## Client SDK\n\n### Current Compatibility\nThe SDK's integration tests run against three tagged Fabric versions:\n- prev (currently v1.4.7)\n- stable (currently v2.2.0)\n- prerelease (currently disabled)\n\nAdditionally for development purposes integration tests also run against the devstable Fabric version as needed.\n\n### Retired versions\nWhen the 'prev' code level is updated, the last tested fabric-sdk-go commit or tag is listed below.\n\n- fabric v1.3: ac70276\n- fabric v1.2: 5e291d3\n- fabric v1.1: f7ae259\n- fabric v1.0: 5ac5226\n\n### Running the test suite\n\nObtain the client SDK packages for Fabric and Fabric CA.\n\n```bash\ngit clone https://github.com/studyzy/fabric-sdk-go.git\n```\n\n```bash\n# In the Fabric SDK Go directory\ncd fabric-sdk-go/\n\n# Optional - Automatically install Go tools used by test suite\n# make depend\n\n# Running test suite\nmake\n\n# Clean test suite run artifacts\nmake clean\n```\n\n### Go Tags\nThe following Go tags can be supplied to enable additional functionality:\n- experimental: includes support for experimental features.\n\n## Contributing to the Go SDK\n\nIf you want to contribute to the Go SDK, please run the test suite and submit patches for review. For general guidelines, please refer to the Fabric project's [contribution page](http://hyperledger-fabric.readthedocs.io/en/latest/CONTRIBUTING.html).\n\nYou need:\n\n- Go 1.14\n- Make\n- Docker\n- Docker Compose\n- Git\n- gobin (GO111MODULE=off go get -u github.com/myitcv/gobin)\n- libtool\n\nNotes:\n\n- Dependencies are handled using [Go modules](https://github.com/golang/go/wiki/Modules).\n\n### Running a portion of the test suite\n\n```bash\n# In the Fabric SDK Go directory\ncd fabric-sdk-go/\n\n# Optional - Automatically install Go tools used by test suite\n# make depend\n\n# Optional - Running only code checks (linters, license, spelling, etc)\n# make checks\n\n# Running all unit tests and checks\nmake unit-test\n\n# Running all integration tests\nmake integration-test\n```\n\n### Running package unit tests manually\n\n```bash\n# In a package directory\ngo test\n```\n\n### Running integration tests manually\n\nYou need:\n\n- A working fabric and fabric-ca set up. It is recommended that you use the docker-compose file provided in `test/fixtures/dockerenv`. It is also recommended that you use the default .env settings provided in `test/fixtures/dockerenv`. See steps below.\n- Customized settings in the `test/fixtures/config/config_test.yaml` in case your Hyperledger Fabric network is not running on `localhost` or is using different ports.\n\n#### Testing with Fabric Images at Docker Hub\n\nThe test suite defaults to the latest compatible tag of fabric images at Docker Hub.\nThe following commands starts Fabric:\n\n```bash\n# In the Fabric SDK Go directory\ncd fabric-sdk-go\n\n# Start fabric (stable tag)\nmake dockerenv-stable-up\n\n# Or more generally, start fabric at a different code level (prev, stable, prerelease, devstable)\n# make dockerenv-[CODELEVEL]-up\n```\n\n#### Running Integration Tests\n\nFabric should now be running. In a different shell, run integration tests\n\n```bash\n# In the Fabric SDK Go directory\ncd fabric-sdk-go\n\n# Use script to setup parameters for integration tests and execute them\n# Previously we use to have hostnames like Fabric CA server, orderer and peer pointed to localhost\n# Now since we removed this now, We will be using a different configuration\nmake integration-tests-local\n\n# Or more generally, run integration tests at a different code level (prev, stable, prerelease, devstable)\n# and fixture target version\n# FABRIC_CODELEVEL_VER=[VER] FABRIC_CODELEVEL_TAG=[CODELEVEL] make integration-tests-local\n```\n\n\n```bash\n# Previously we use to have hostnames like Fabric CA server, orderer and peer pointed to localhost\n# Now since we removed this now, We will be using a different config file config_test_local.yaml\n# which has the Fabric CA server, orderer and peers pointed to localhost\n# It is also possible to run integration tests using go test directly. For example:\n#cd fabric-sdk-go/test/integration/\n#go test -args testLocal=true\n\n#cd fabric-sdk-go/test/integration/orgs\n#go test -args testLocal=true \n\n# You should review test/scripts/integration.sh for options and details.\n# Note: you should generally prefer the scripted version to setup parameters for you.\n```\n\n#### Testing with Local Build of Fabric (Advanced)\n\nAlternatively you can use a local build of Fabric using the following commands:\n\n```bash\n# Start fabric (devstable codelevel with latest docker tags)\nmake dockerenv-latest-up\n```\n\n## License\n\nHyperledger Fabric SDK Go software is licensed under the [Apache License Version 2.0](LICENSE).\n\n---\nThis document is licensed under a \u003ca rel=\"license\" href=\"http://creativecommons.org/licenses/by/4.0/\"\u003eCreative Commons Attribution 4.0 International License\u003c/a\u003e.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstudyzy%2Ffabric-sdk-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstudyzy%2Ffabric-sdk-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstudyzy%2Ffabric-sdk-go/lists"}