Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 1021 Bytes

File metadata and controls

30 lines (24 loc) · 1021 Bytes
title Substrate: Subscan
description Subscan is a popular Substrate blockchain explorer. It provides a public API to fetch Substrate metadata. DipDup can use its API to fetch ABIs for pallets being indexed.
network substrate

Subscan

Subscan is a popular Substrate blockchain explorer. It provides a public API to fetch Substrate metadata. DipDup can use its API to fetch ABIs for pallets being indexed.

To use this datasource, add the following section in config:

datasources:
  subscan:
    kind: substrate.subscan
    url: ${SUBSCAN_URL:-https://api.subscan.io/api}
    api_key: ${SUBSCAN_API_KEY:-''}

During initialization, DipDup will use this datasource to fetch contract ABIs. If your config contains definitions for multiple networks, you can assign the datasource explicitly in substrate.subsquid index definitions:

indexes:
  substrate_events:
    kind: substrate.events
    datasources:
    - subscan
    ...