A robust Node.js/Express API acting as the secure bridge between Client Applications (Web/Mobile) and the Service Blockchain Network. This middleware abstracts the complexity of Hyperledger Fabric's gRPC protocols, exposing simple REST endpoints for asset management.
- Architecture
- Prerequisites
- Folder Structure
- Installation & Setup
- Configuration
- API Documentation
- How it Works (Fabric Gateway)
This middleware implements the Fabric Gateway Pattern:
- Client: Sends JSON HTTP requests (e.g.,
POST /create). - Middleware:
- Validates the request.
- Loads the Wallet Identity (X.509 Certificate).
- Connects to the Fabric Gateway via gRPC.
- Blockchain: Submits the transaction to the Peer nodes for endorsement and committing.
[Mobile App] <--> [HTTP/JSON] <--> [Middleware (This Repo)] <--> [gRPC] <--> [Fabric Network]