Welcome to BlockPI
BlockPI Network officially launched on October 25th, 2022. Compared to Testnet, it is a more stable version and ready for production environments. You will be able to enjoy the high-quality service on dozens of chains (Supported Networks and Advanced Features). For more information, please refer to BlockPI Medium article.
BlockPI Network aims to provide high-quality, robust, and efficient RPC service. To avoid the single-point failure and limitation of scalability, the network is designed to be a distributed structure with expandable working nodes. This page introduces the detailed roles and the service mechanisms of the BlockPI Network.
BlockPI Network architecture
BlockPI Hub is a server managing the user system, node rating and authenticator system, and accounting system. The user's registration information, account information, and KYC information are maintained here. It also tests the nodes in the network all the time and gives them scores which is a source of BlockPI Load Balancer. The income and expenses of the entire network are calculated here, as well as the rewards issued to characters in the system. As you can see, this part is a centralized service. In later versions, we will gradually decentralize this part of the function, and deploy them to smart contracts, leaving only a small part of the core service.
HyperNode is the end node that processes RPC requests and sends responses to users through Gateway. HyperNode is usually run with the full node of the target blockchain (the RPC request targets). During the testnet phase #1, third-party operators were able to join and run HyperNodes.
Gateways collect and sort users' requests, and route them to the proper HyperNode by the BlockPI Load Balancer. Gateway registration is expected to be open to third parties operators after HyperNode.
Validators are individual blockchain nodes monitoring each role in the network. It is the guarantee of the healthy operation of the network. With certain frequency and random algorithm, a Validator retrieves data from HyperNode and Gateway and writes to a block. With the consensus protocol, the data is verified and recorded by other Validators. In this way, the Validators become a blockchain network and supervise the other roles in the network.
Fisherman is another role responsible for the network security and can be considered as a special kind of user. It verifies that HyperNodes and Gateways are functioning properly in the same way as normal users sending requests.
- To use the BlockPI Network service, a user must register on BlockPI Dashboard and create an API key. At the same time, the RPC URL is generated. Different types of RU packages are also available to be purchased by users.
- Requests can be sent by this URL and routed to a proper Gateway by DNS.
- The Gateway checks the user authority and applies a ticket for this user. After that, it sends the request to a HyperNode through BlockPI Load Balancer.
- HyperNode processes the request and gets a response from the target blockchain RPC node. The response is sent back to the Gateway and therefore delivered to the user.
- When the request is fully processed and the response is delivered to the user, the HyperNode and Gateway save the data in a snapshot for the Validators to verify.
For a higher quality RPC service, follow these instructions to register and generate your first BlockPI API key.
BlockPI Public RPC will be soon available. Stay tuned.