/ Docs
7.0
/
Table of Contents

Etherscan

Etherscan is a popular Ethereum blockchain explorer. 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:
  etherscan:
    kind: abi.etherscan

This datasource will be chosen automatically for all contracts with no ABI available locally. You can also set it explicitly in EVM index definitions:

dipdup.yaml
indexes:
  evm_events:
    kind: evm.subsquid.events
    abi:
    - etherscan

Authorization

If you have an Etherscan API key, you can set it in config. You may also want to increase the ratelimit according to your subscription plan. Otherwise, you will be limited to 5 requests per second.

dipdup.yaml
datasources:
  etherscan:
    kind: abi.etherscan
    api_key: ${ETHERSCAN_KEY:-}
    http:
      ratelimit_period: 1
      ratelimit_rate: 10
Help and tips -> Join our Discord
Ideas or suggestions -> Issue Tracker
Table of Contents