Etherscan

A block explorer for Ethereum that shows transactions, addresses, tokens and verified contract source.

Visit websiteOfficial site: etherscan.io

Facts checked · Onchain tools

Etherscan lets you search the Ethereum blockchain and read the verified source of deployed contracts. Its help pages define four verification states and explain how it detects proxies and shows the implementation contract.

Key facts

Kind
Block explorer
Verification states
Unverified, Similar Match, Exact Match, Runtime Match
Proxy support
Read as Proxy and Write as Proxy, using the implementation's ABI

What it is

Etherscan is a block explorer. Its page description says it lets you explore and search the Ethereum blockchain for transactions, addresses, tokens and prices. Contract developers can publish source code, which Etherscan verifies against the deployed contract so readers can inspect it.

How it works

Verification states. Etherscan’s help page lists four:

  • Unverified: the default for a new contract. Only the creation bytecode is shown.
  • Similar Match: applied automatically when bytecode matches an already verified contract. Constructor arguments are not considered.
  • Exact Match: the deployed code and its constructor arguments match the verified source.
  • Runtime Match: the runtime bytecode matches the compiled source. Deployment bytecode and constructor arguments are not checked.

Proxies. Etherscan scans bytecode for patterns of known proxy designs, such as use of delegatecall. If it finds one, a verification step tries to identify the implementation address, after which the Contract tab shows Read as Proxy and Write as Proxy. After an upgrade, verification has to be run again. The page warns that malicious implementations “could be hidden from plain sight” and advises reviewing the implementation yourself.

What to check

  • The verification label on each contract that holds funds, not only a verified badge.
  • For a proxy, the current implementation address and whether that implementation is verified.
  • Whether the verified source matches the commit hash in the audit report.

Risks to understand

  • A Similar Match is applied automatically when bytecode matches another verified contract, and constructor arguments are not considered.
  • A Runtime Match checks only the runtime bytecode. Deployment bytecode and constructor arguments are not checked.
  • Etherscan's proxy page says it does not automatically verify that the code shown in the Read as Proxy and Write as Proxy tabs is what actually executes.

Questions

What does Exact Match mean on Etherscan?
Etherscan's help page says the deployed code and its constructor arguments both match the verified source.
Can I trust the implementation shown for a proxy on Etherscan?
Not by default. Etherscan's own proxy page says it does not automatically verify that the displayed implementation code is what runs, and advises reviewing the implementation yourself.

Sources

  1. Etherscan home pageaccessed
  2. Etherscan Information Center, types of contract verificationaccessed
  3. Etherscan Information Center, proxy contractsaccessed

How this page works

“Visit website” always goes to the project’s official site and is never a referral link. Listings are not paid for. Facts come from the sources above and were last checked on the date at the top. If a figure could not be confirmed it is shown as “Not verified”, with no number. This page is educational and is not financial advice. Read the methodology.