Please describe your proposed solution
The service will be usage-based, where “requests” will be bought exclusively for XRAY or ADA. It will distribute popular APIs such as Koios (cardano-db-sync), Ogmios, Kupo, Nftcdn API, Price API, as well as a number of built-in APIs to track various parameters of the Cardano ecosystem and the XRAY/Network ecosystem. This will help developers instantly access the APIs by simply connecting any Cardano wallet and buying “requests”.
The service will consist of four parts: Load Balancer, Servers Daemon, Client, Frontend App.
- Load Balancer is an embedded solution powered by Cloudflare Workers to manage ACLs (API access key generation) and rate limits. This is where on-chain purchases will be tracked and the number of “requests” will be credited to the users' balance.
- Servers Daemon will monitor the load and deploy the required API instances and include them in the cluster.
- Client is a TS client wrapper for working with APIs.
- Fronted App will be used by users as an account management system: generating keys, buying “requests”, tracking statistics.
The base version of the product is ready and used both in our ecosystem and by other projects.
Github: https://github.com/xray-network/cloudflare-worker-output-load-balancer
Some of the available endpoints: