Sourcify

Note
Examples below are for Ethereum mainnet. For other supported networks, see EVM Networks.

Sourcify is a source-code verification service for Ethereum smart contracts supporting Solidity and Vyper. It provides a public API to fetch ABIs of verified contracts. DipDup can use its API to fetch ABIs for contracts being indexed.

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

dipdup.yaml
datasources:
  sourcify:
    kind: evm.sourcify
    chain_id: 1  # Ethereum mainnet

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 evm index definitions:

dipdup.yaml
indexes:
  evm_events:
    kind: evm.events
    datasources:
    - sourcify
    ...
Help and tips -> Join our Discord
Ideas or suggestions -> Issue Tracker
GraphQL IDE -> Open Playground