Hello Avalanche builders! We have some exciting updates to share to you, and some important news around some code changes that you need to do to take advantage of these improvements.
The new versions of SubQuery bring some massive performance improvements and support for new features. Plus, the migration process is a breeze and should only take a few minutes of your time. So, what are you waiting for? Let's embark on this seamless transition together!
What has changed
We are no longer supporting @subql/node-avalanche and replacing it with @subql/node-ethereum. The SDKs were largely identical and we are reducing the number of packages that we support in order to deliver new features to you faster.
The new package is largely the same, with minor change to the runtime, handlers, and mapping functions - you can read the full guide here: https://academy.subquery.network/miscellaneous/avalanche-eth-migration.html
Our new full Ethereum SDK support for Avalanche brings the following key features and performance improvements to Avalanche projects:
- Real-time indexing (Block Confirmations) resulting in an insanely quick user experience for your customers.
- Contract query support allowing querying contract state
- Third-party Library Support allowing you to retrieve data from external API endpoints, non historical RPC calls, and import your own external libraries into your projects
- Testing Framework providing an easy way to test the behavior of mapping handlers and validate the data being indexed in an automated way.
- Multi-chain indexing support to index data from across different networks (e.g. Ethereum and Avalanche) into the same database, this allows you to query a single endpoint to get data for all supported networks.
- Dynamic data sources to index factory contracts that create other contracts (e.g. a DEX)
- 1.85x faster indexing compared to the previous avalanche codebase
Migrating
There is a step by step guide on how to migrate here. The process is easy and should only take a few minutes
If you have any questions at all, please reach out to us on our Discord and follow our social channels to stay updated on our latest news and announcements!
Key Resources
- Step by step Avalanche migration developer guide
- Discord community (including technical support)
About SubQuery
SubQuery is a blockchain developer toolkit facilitating the construction of Web3 applications of the future. A SubQuery project is a complete API to organise and query data from Layer-1 chains. Currently servicing Ethereum, Polygon, BNB, Polkadot, Avalanche, Algorand, Cosmos, NEAR and Flare projects, this data-as-a-service allows developers to focus on their core use case and front-end without wasting time building a custom backend for data processing activities. In the future, the SubQuery Network intends to replicate this scalable and reliable solution in a completely decentralised manner.
Linktree | Website | Discord | Telegram | Twitter | Matrix | LinkedIn | YouTube