Substrate node

DipDup can connect to any Substrate node via JSON-RPC. It can be used as a "last mile" datasource for Substrate indexes (data that is not in Subsquid Network yet) or as a standalone datasource for handlers and hooks.

dipdup.yaml
datasources:
  node:
    kind: substrate.node
    url: https://statemint.api.onfinality.io/rpc?apikey=${ONFINALITY_API_KEY:-''}
    ws_url: wss://statemint.api.onfinality.io/ws?apikey=${ONFINALITY_API_KEY:-''}

Then, add it to Substrate index definitions:

dipdup.yaml
indexes:
  assethub_transfers:
    kind: substrate.events
    runtime: assethub
    datasources:
    - subsquid
    - subscan
    - node
    handlers:
    - callback: on_transfer
      name: Assets.Transferred
Help and tips -> Join our Discord
Ideas or suggestions -> Issue Tracker
GraphQL IDE -> Open Playground