Expand description
On-chain contract verification — verifies deployed contracts against their source code via block explorers (Etherscan, Basescan, etc.) and RPC bytecode matching.
§Explorer URL Registry
Maps chain names to their block explorer API URLs for all 17 supported chains.
Used by [forge verify-contract] and direct API calls.
Structs§
- Contract
Verifier - Handles on-chain contract verification via explorer APIs and RPC bytecode matching.
- Verification
Result - The result of a verification attempt.
Enums§
- Verification
Method - The method used for contract verification.
Functions§
- explorer_
api_ key_ env - Get the environment variable name for the explorer API key.
- explorer_
api_ url - Returns the block explorer API base URL for a given chain name.
- explorer_
base_ url - Returns the block explorer front-end URL for a given chain name. Used for providing clickable links in reports.
- forge_
available - Check whether
forgeCLI is available on the system. - rpc_
url_ for_ chain - Get the RPC URL for a chain from environment or return a default.