Contract Sources

Browse verified contract source files and jump between symbol definitions.

Sources shows the file tree on the left and code on the right. Files you open remain in tabs.

Interface

AreaDescription
SourcesBrowse the file tree; use the input at the top to filter by file name.
EditorsView opened files, switch between tabs, or close them.
SearchPress ⌘ K (Ctrl K on Windows/Linux) to search all source code.

Example

This example uses local Uniswap V3 Pool files and does not access on-chain data.

  1. Open UniswapV3Pool.sol.
  2. Find flash.
  3. Hold (Ctrl on Windows/Linux) and click IUniswapV3Pool to jump to the interface file.
  4. Enter IUniswap in the filter to keep only relevant files; clear it to restore the full list.

Go to definition

Hover over a function, contract, variable, or interface name, then hold / Ctrl and click to open the file containing its definition at the relevant line. If several matches exist, a list of choices appears.

Right-click and select Find All References to see where the name is used.

Notes

  • Unverified contracts have no source code to show; use Trace or Bytecode Debugger instead.
  • For proxy contracts, the implementation contract's source code is shown first.
  • Go to definition and reference search require an AST. Without one, you can still browse and search source code.

Next steps