squid Blog
Published in

squid Blog

Subsquid Indexing Comes to BNB Chain

Recently, we announced the launch of squid SDK and the Aquarium hosted service on several major EVM chains, including Ethereum, Polygon, and Avalanche. Today, we are excited to reveal our support for BNB Chain as well. To get started you can follow this tutorial.

Feel free to contact our team directly with any questions that you might have.

Quickstart Guide for EVM Chains

Don’t forget to install squid CLI!

NPM:
> npm i -g @subsquid/cli@latest
Check the version: 
> sqd — version

There are many squid templates available. Explore them all by entering:

Full quickstart guide available here.

Custom GraphQL APIs and ETLs for Next-Gen dApps

Web3 has entered a period of transition, and a new generation of more sophisticated dApps is being developed. NFTs are pivoting from simple cartoon pictures to tools that power complex use cases such as identity, social media, games, and supply chains. DeFi is becoming more advanced, now increasingly enhanced by AI-powered models and ML-trained automations. Users and developers now expect better experiences when using these applications. With a unique approach to indexing and ETL, Subsquid is building for this new paradigm

Subsquid and its open-source software development kit (SDK) have a modular architecture, which separates blockchain data ingestion from transformation and presentation. This frees developers up to apply their own custom logic to their “squids” (node.js indexing projects).

In other words, the heavy lifting of data extraction is taken care of by squid Archives — data lakes that store pre-indexed data in a normalized format, and which are maintained by Subsquid (and — soon — by a decentralized network). With the addition of batch ingestion, squids are enabled to index data at rates as high as 50,000 blocks per second — performance significantly beyond that of Subgraphs. Importantly, squids typically require no additional endpoints and have no external dependencies at setup.

Other squid features include:

  • Full control over the target database (Postgres), including custom migrations and ad-hoc queries in the handler.
  • Custom target databases and data formats (e.g. CSV, BigQuery).
  • Arbitrary code execution in the data handler.
  • Extension of the GraphQL API with arbitrary SQL.
  • Secret environment variables, allowing for seamless use of private third-party JSON-RPC endpoints and integration with external APIs.
  • API versioning and aliasing.
  • API caching

To learn more about Subsquid’s architecture, visit the documentation.
Got a Subgraph to migrate from? We’ve got a guide for that.

Entering the BNB Chain Ecosystem

Launched in 2020 by the world’s largest cryptocurrency exchange, Binance, BNB Chain was created to facilitate the development and operation of high-performance, scalable, dApps. With high transaction speeds and low costs, BNB Chain offers a great environment for building the truly sophisticated, and highly data-heavy applications that necessitate the tools provided by Subsquid. We are absolutely thrilled to be getting started in this ecosystem.

Over the last couple of months, we have coordinated with several members of the BNB Chain team, and would like to express our immense gratitude for their support. We are looking forward to collaborating on multiple fronts, including developer relations, marketing, and data analytics, in 2023 and beyond.

About Subsquid

Subsquid is the team behind squids, a new standard for Web3 data extraction and transformation. Squids already power hundreds of applications across dozens of EVM, Substrate, and WASM-based chains. With modular architecture and a host of advanced features, Subsquid offers the most resource-efficient and developer-friendly way to build, test, and deploy customized GraphQL APIs and ETLs for blockchain-facing applications.

Twitter | Discord | LinkedIn | Telegram | GitHub

--

--

Subsquid is the team behind squids, Web3’s most versatile and dev-friendly indexers. Squids already power hundreds of applications across dozens of EVM, Substrate, and WASM-based chains.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Subsquid

Building a better standard for Web3 indexing and ETL. Support for EVM, Substrate, and WASM chains. http://t.me/subsquid & http://discord.gg/subsquid