Getting started
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. For a detailed description the Fabric Gateway, refer to the architecture reference in the main Fabric documentation.
Documentation
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
Tutorials
The following tutorials describe how to write client applications using the Fabric Gateway client API:
- Running a Fabric Application from the main Fabric documentation describes in detail the Fabric asset-transfer-basic sample.
- Client Application Development section of the Fabric full-stack-asset-transfer-guide sample.
Samples
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 Fabric Gateway.
- asset-transfer-basic for examples of transaction submit and evaluate.
- asset-transfer-events for examples of chaincode eventing.
- off_chain_data for examples of block eventing.
Migration
If migrating an existing application from one of the legacy Fabric client SDKs, consult the migration guide.