Skip to main content
Version: Firesquid

Examples

info

Any GitHub repo can be used as a template for sqd init. Simply pass the repo URL to the --template flag.

To learn by example, inspect these squids:

EVM Processor

Browse a dedicated repository with EVM squid examples. It contains:

  • A squid indexing transfers by extracting Transfer(address,address,uint256) logs emitted by a given contract
  • A squid indexing token swaps from dynamically created AMM pools.
  • A squid that additionally queries the historical state of the contract.

Additionally, inspect the following benchmark squids:

Substrate Processor

Browse a dedicated repository with Substrate squid examples:

More examples can be found by browsing the gallery of the public squids in the Aquairum. Inspect the squid sources by following the GitHub link on the squid page.