The Fabric Gateway is a core component of a Hyperledger Fabric blockchain network, and coordinates the actions required to submit transactions and query ledger state on behalf of client applications. By using the Gateway, client applications only need to connect to a single endpoint in a Fabric network.
Fabric Gateway v1.4
There are samples for Go, Node, and Java in the fabric-samples repository, which are a great place to start if you want to try out the new Fabric Gateway!
- fabric-samples/asset-transfer-basic for examples of transaction submit and evaluate.
- fabric-samples/asset-transfer-events for examples of chaincode eventing.
- fabric-samples/off_chain_data for examples of block eventing.
If migrating an existing application from one of the legacy Fabric client SDKs, consult the migration guide.
Client API
The Fabric Gateway client API is available for several programming languages to support the development of client applications that interact with a Fabric network using the Gateway.
Go
Node
Java
Compatibility
Each minor release version of Fabric Gateway client API targets the current supported versions of Go, and the current long-term support (LTS) releases of Node and Java. A specific minimum version of Hyperledger Fabric for the Gateway peer is also required for full functionality.
The following table shows versions of Fabric, programming language runtimes, and other dependencies that are explicitly tested and that are supported for use with the Fabric Gateway client API.
Tested | Supported | |
---|---|---|
Fabric | 2.5 | 2.4.4+ |
Go | 1.20, 1.21 | 1.20, 1.21 |
Node | 18, 20 | 18, 20 |
Java | 8, 11, 17, 21 | 8, 11, 17, 21 |
Platform | Ubuntu 22.04 |