Skip to content

playzero/squid-archive-registry

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Squid Archive Registry

A community-owned registry of Squid archives in a json format.

What is a Squid Archive?

Squid Archive provides easy access to the historical on-chain data with little modifications. It is essential for Squid pipelines. It can also be used on its own as a GraphQL-based block explorer with powerful filtering and search capabilities over historical events and transactions.

How to use an Archive ?

The primary use case of a Squid Archive is to serve data to a Squid Processor

The urls are not supposed to be accessed with a browser. To explore the endpoint with an interactive and human-friendly console, replace /graphql with /console in the url.

For example, for exploring Kusama historical data, open https://kusama.indexer.gc.subsquid.io/v4/console and use the pane on right hand side to filter (where:) and pick the fields of interest.

For example, the following query will return details on the last 10 transfers:

query RecentBalancesTransfers {
  substrate_event(where: {name: {_eq: "balances.Transfer"}}, limit: 10, order_by: {blockNumber: desc}) {
    blockNumber
    blockId
    data
  }
}

To learn more how to construct the queries, consult Hasura Docs

How to contribute

To contribute a new archive, make a PR updating registry.json specifying the network name and the url.

About

A community-owned registry of Squid archives

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors