Substrate indexing examples
info
Any GitHub repo can be used as a template for sqd init. Simply pass the repo URL to the --template
flag.
Browse a dedicated repository with Substrate squid examples:
- A simple squid tracking Kusama transfers. Illustrates a basic usage of
SubstrateBatchProcessor
. - A complex squid tracking balances across multiple parachains (*). This complex squid illustrates the usage of
SubstrateBatchProcessor
, storage calls and custom resolvers. - Simple Frontier EVM squid indexing an NFT collection on Astar. Illustrates how to use
SubstrateBatchProcessor
to index EVM logs. See Frontier EVM tutorial for details. - Simple ink!/WASM squid. Illustrates how to use
SubstrateBatchProcessor
to index WASM smart contract data. See WASM tutorial for details. - An advanced squid tracking all the historical ERC20 and NFT transfers on Moonbeam (*). Illustrates the usage of wildcard selectors and a possible way to organize a growing squid codebase into submodules.
(*) These archive squids use the older Makefile-based interface. Look into their dedicated pages or repository README files for guidance.