tldr: Second of three milestones in which SubQuery and Fearless Wallet create an open source API that should be able to provide different types of applications with a sufficient (but read-only) view of all key data within the Kusama chain. E.g. a developer could use it to create their own chain explorer without needing to directly query chain data
We believe that the DApps ecosystem will benefit from a common core API that each parachain can integrate (and extend) to index and expose their chain data for future consumer facing applications (e.g. a wallet, explorer, or other dApp).
There will be 3 individually proposed milestones delivering open source projects, packages, and associated learning material to help decentralised app developers start building applications on Polkadot/Kusama
Who
This is a joint proposal between two parties - SubQuery/OnFinality and Fearless Wallet/SORAMITSU
What
Outcomes
This proposal is for the 2nd milestone only.
Implement a SubQuery project that provides the data for the previously defined API spec for Kusama (from milestone 1).
Current API Spec GitHub: https://github.com/subquery/common-api-polkadot/blob/main/schema.graphql
Current GraphDoc Preview: https://subquery.github.io/common-api-polkadot/
It will be made open source (MIT license) on GitHub and uploaded to the SubQuery Explorer so it can be indexed and made available for all to query (for free).
Our view is that this API should be able to provide applications with a sufficient (but read-only) view of all key data within the chain. E.g. a developer could use it to create their own chain explorer without needing to directly query chain data. One key thing to note with our core API interface is that the design should largely work across any parachain. We’ve written it with existing parachains like Karura and Moonriver in mind.
You’ll see that there are some open issues in the repository. These APIs are intended to be constantly iterated and improved over time (with considerations to backwards compatibility). We invite the Kusama community to provide feedback directly via GitHub in the form of issues and pull requests.