Case Study: ChainSafe using SQD to power fast EVM deployments

Fact Sheet

Quick description of ChainSafe: Chainsafe is an R&D and web3 infrastructure company specializing in protocol engineering, interoperability, and web3 gaming. With their products, Chainsafe delivers open-source, end-to-end solutions for interoperable game development, such as a Unity SDK, an In-Game-Marketplace Tool Kit, and Decentralized Loot Boxes.

Chains served: Ethereum, Polygon, Binance, Avalanche, Base (&all associated testnets) 

Make or break features: Multichain indexing 

Using SQD for:  indexing marketplace contracts, indexing NFT swaps, and importing NFTs from outside the ChainSafe ecosystem

Only possible with SQD: accessing all the data on the EVM chains relevant for ChainSafe. 

How ChainSafe is using SQD to provide multichain development support 

ChainSafe is an R&D and infrastructure company that provides developers with easily accessible tools and infrastructure pieces to create their own solutions. One example is their bespoke storage service, allowing anyone to upload encrypted files to IPFS/filecoin

Going beyond storage, ChainSafe also offers a holistic suite of tools for projects and individuals looking to create their own web3 games, from game development SDKs to marketplace tools. With all their products, the team has put an emphasis on making them chain-agnostic. 

“We support major EVM-compatible blockchains, and some of our tools are also game engine agnostic.” 

While this approach guarantees flexibility to developers building with ChainSafe, the team shared that “it was quite difficult to find partners that offered quality indexing support for all the ecosystems we work with.” Indexing solutions exist separately for the different platforms ChainSafe was building on, but none covered them all. 

After extensive research and investigation, they “even considered building our own.” until they came across SQD. 

“We found the SQDsolution to be the most comprehensive and flexible”

Further benefits they noted were that it was very easy to integrate with, highly configurable, supporting the flexibility ChainSafe provides, fast, and allowed collection of all the necessary data from multiple chains with just one single indexer. 

“SQDallows us to use custom libs in the codebase, which gives us a high level of flexibility to practically do anything.“

Multichain indexing 

One of SQD’s strengths is that you can access data for assets on multiple chains with one indexer. ChainSafe is using this to grab, for example, data for all the NFTs that have been created outside of their ecosystem and need to be imported. Additionally, they leverage Subsquid to index marketplace contracts and keep track of all the NFT swaps that occurred using their NFT Swap Toolkit. 

Currently on Ethereum, Polygon, BNB chain, Avalanche, and Base as well as their testnets. 

The team mentioned that “Implementing the indexers was quite easy. The boilerplate provides a quick and easy codebase to work with.“ 

For an example of an indexer that tracks asset transfers on multiple chains, go here: indexer tracking USDC transfers on Ethereum and BNB chain.

Working together 

ChainSafe’s team commented that they enjoyed working with Subsquid Labs and highlighted the willingness of SQD engineers to add blockchain support as needed. 

“The SQD team has been a pleasure to work with. We were well supported throughout our initial integration, and the team has continued to provide crucial assistance now that our products are in production. We are very pleased with how willing the Subsquid team has been to support new blockchains in their product whenever we need to expand our offering.”