The backend server is a bridge between the blockchain network, the IPFS network, the postgresql database, and the bank portal frontend. It takes a request from the frontend, processes it, and forwards it to the next component in the workflow.
The backend server extends a set of API endpoints, where the frontend can post requests. The API endpoints are listed as follows:
/customerinfo: Fetches the customer's info, including name, address, account, and balance from the banka or bankb database, and passes it to the bank portal frontend.
/payment: The bank portal frontend posts payment requests to this endpoint. It uploads the transaction documents, including invoices, BOL/BOE, and any other document to the bank server, posts the document to the IPFS network, and then fires the remittance transaction on the blockchain network. On a successful...