The diagram describing the relationship between Pirichain database and services is shown in Figure 1.9. In the system, every transaction is handled primarily via WEB API or WS (Web Socket) API. Connecting to these end points is done with SSL (Secure Socket Layer). The resulting request is evaluated by the modules and transferred to the services. In services, it becomes final or rejected. Services have permission to connect directly to databases. Modules only carry information to services or endpoints.
Figure 1.9: Piri Blockchain database and service structures