Subsquid Support For Fantom
Subsquid Indexing Comes to Fantom
Quickstart Guide for EVM Chains
This demo squid outputs transactions to the “black hole” address 0x0000000000000000000000000000000000000000.
It is intended to be a starter project for building a custom squid that indexes the logs and transaction data of EVM chains.
Before getting started, come up with an original name for your squid, then generate your demo with the following commands:
> sqd init my-awesome-squid — template evm > cd my-awesome-squid > npm ci > npm run build > make up > make process
Don’t forget to install squid CLI!
Homebrew: > brew tap subsquid/cli > brew install sqd NPM: > npm i -g @subsquid/[email protected] Check the version: > sqd — version
There are many squid templates available. Explore them all by entering:
sqd init — help
Custom GraphQL APIs and ETLs for Next-Gen dApps
Web3 changing, a new generation of dApps being develop. NFTs are pivoting from simple cartoon pictures to tools that power complex use cases such as identity, social media, games, and supply chains. DeFi becoming more advance, and increasingly enhance by AI-powered models & ML-trained automations. Users and developers now expect better experiences when using these applications.
With a unique approach to indexing and ETL, we at Subsquid arebuilding 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).
When a dApp ‘powered by Subsquid,’ the heavy lifting of data extraction 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
Contributing to the Fantom Ecosystem
Fantom a high-performance, scalable, customizable, and secure EVM-compatible smart contract platform. Design to be truly next-generation, addressing many limitations of other blockchains. Key to this is Lachesis, an aBFT consensus protocol, which makes Fantom faster and more scalable than many previous technologies. Lachesis both customizable and modular, and intended for interoperability. At Subsquid, they look forward to leveraging the experience in cross-chain indexing in order to contribute to Fantom’s multi-chain future.
Over the last few weeks, they have coordinated with several members of the Fantom team. They have been very impressed by their professionalism, & look forward to working together on multiple fronts, including developer relations, marketing, & data analytics.
Subsquid developing the go-to indexing solution for the Polkadot and Kusama ecosystems. Led by its core principle of building scalable and intuitive systems. The Subsquid solves a common issue for parachain projects: extracting and processing on-chain data.