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
| Area | Description |
|---|---|
| Sources | Browse the file tree; use the input at the top to filter by file name. |
| Editors | View opened files, switch between tabs, or close them. |
| Search | Press ⌘ 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.
- Open
UniswapV3Pool.sol. - Find
flash. - Hold
⌘(Ctrlon Windows/Linux) and clickIUniswapV3Poolto jump to the interface file. - Enter
IUniswapin 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.
