SubQuery Example Project — Multi-Chain Indexing of Safe

SubQuery Network
3 min readNov 13, 2023

In the realm of cryptocurrency and blockchain technology, security and transparency are paramount. Safe, a leading decentralised digital wallet known for its robust features and user-friendly interface, has gained prominence among crypto enthusiasts and institutions. If you’re excited to delve into the dynamic world of Safe multisig and are looking to establish a Subquery indexer for it, this guide is here to assist you.

This guide acts as your entry point to the efficient indexing of signature data in the Safe protocol ecosystem, empowering users to navigate the multisig transactions. The Safe protocol extends its operations to various blockchain networks, and for developers aspiring to create the next decentralised application that seamlessly spans multiple chains, the ability to concurrently index multiple blockchains is an indispensable requirement for their endeavours. SubQuery has proactively stepped in to address this need, introducing a groundbreaking solution known as Multi-Chain Indexing.

Example

The Snapshot sample project gathers data related to Delegations. Key resources:

Use-Cases

Once you initiate the project, you’ll have the choice to launch the queries. In this context, the only entity under consideration is “Sig,” and it serves as the exclusive channel through which we can gain valuable insights. Let’s explore the following illustration:

The query above retrieves individual signatures executed within the context of a Safe smart multisig contract. An instance of this contract is generated for each user’s multisig wallet. Given this case, we had employed the dynamic datasource in the configuration. This means that we can now access them using the subsequent query:

Considering that this project spans multiple blockchains, we have the capability to query not only the datasources but also the project’s metadata. This can be accomplished using the following query:

Furthermore, when you combine multi-chain capabilities with aggregations, it opens up significant possibilities for cross-chain analysis without a need to exit the GraphQL interface to gain insights into specific subject matters.

About Safe

Safe is a popular, open-source, non-custodial, and decentralised digital wallet that is primarily used for managing cryptocurrencies and digital assets. It is designed to enhance the security of managing crypto holdings and simplify complex operations like multi-signature transactions. This significantly enhances security by preventing unauthorised access.

About SubQuery

SubQuery is a leading blockchain data indexer that provides developers with fast, flexible, universal, and decentralised APIs for web3 projects. We empower developers from over 110+ ecosystems including Ethereum, Polygon, Polkadot, Cosmos, Algorand, NEAR, and Avalanche with rich indexed data to allow them to build intuitive and immersive decentralised applications. This blockchain developer toolkit enables developers to focus on their core use case and front-end without wasting time building a custom backend for data processing activities. In the near future, the SubQuery Network will replicate this scalable and reliable solution in a completely decentralised manner.

​​Linktree | Website | Discord | Telegram | Twitter | Matrix | LinkedIn | YouTube

--

--

SubQuery Network

SubQuery is here to help you transform and query the world’s data for a web3.0 future. https://subquery.network/