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.
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.
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.
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.
If migrating an existing application from one of the legacy Fabric client SDKs, consult the migration guide.