SubQuery is a fast & flexible blockchain indexing toolkit that powers hundreds of teams on blockchain networks such as Ethereum, Polkadot, Cosmos, Algorand and Avalanche. We also power NEAR and Aurora, and a number of Layer 2 chains such as Polygon, Arbitrum and Optimism.
Nothing much to say, but it’s very easy to do it with SubQuery. To do what? To create a SubQuery project indexing blockchain data within the SEI Network of course! Indexing the SEI Network allows developers to create a customised back end API to power their wondering and amazing front end dApps.
It takes about 3 minutes to get the SEI basic starter project up and running in a Docker environment. It is literally three lines of code.
subql init (to initialise the project and go through the step by step guide)
yarn install (install the dependencies)
yarn dev (to build & run the project in docker)
Once this is done and confirmed working, the next step is to follow our step by step quick start guide that indexed all ETH-USD exchange rates provided to Levana’s Sei DEX protocol by the Pyth price oracle. The quick start should take about 10–15 minutes and walked you through the various components of a SubQuery project.
At a high level, these are the steps are required:
1. Update Your GraphQL Schema File
2. Update Your Manifest File
3. Add a Mapping Function
4. Build Your Project
5. Run Your Project Locally with Docker
A sample query and the expected query result is also provided for reference.
What next?
Modify the starter project or the quick start to index SEI blockchain data that you need to power your web3 decentralised application now. If you need help, feel free to reach us on Discord or our various social media links down below. Happy Indexing!
P.S. Remember to join our Discord and our social channels to stay updated on our latest news and announcements!
Key resources:
About Sei Network
Sei Network is an open-source Layer 1 blockchain that is specialised for trading, optimising every layer of the stack to offer infrastructure for trading applications of all types. Sei promises lightning-fast transaction finality of 600ms and 22,000 orders per second. It has dubbed itself the “Decentralised NASDAQ” for its focus on providing a CeFi trading experience with DeFi tools.
Website | Discord | Telegram | Twitter
About SubQuery
SubQuery is a leading data indexer that gives you fast, reliable, decentralised, and customised APIs for your web3 projects. We empower developers from over 80+ ecosystems including Sei Network with rich indexed data to allow them to build intuitive and immersive experiences for their users. The SubQuery Network powers your unstoppable apps with a resilient and decentralised infrastructure network. Use our blockchain developer toolkit to build the web3 applications of the future, without wasting time building a custom backend for data processing activities.
Linktree | Website | Discord | Telegram | Twitter | Matrix | LinkedIn | YouTube