My dev blog where I dive deep into TypeScript, Postgres, Data science, Infrastructure, Ethereum, and more...

How to download ABI from Etherscan

29th Apr 2022

If you are lucky, you can get the ABI you are looking for from Etherscan.

  1. Find the contract page on etherscan.io
  1. Go to the Contract tab.
    1. ✅ If it looks like this, its good news: (example)

      ❌ If it looks like this, there is no ABI available: (example)

  1. Scroll down and find the API. Copy paste or export.

Why can’t all ABIs be found on Etherscan?

The ABI must be provided by the contract deployer, and cannot be (effectively) derived from just the address or the code at the address. (link)


Tools