Skip to main content

Module verifier

Module verifier 

Source
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§

ContractVerifier
Handles on-chain contract verification via explorer APIs and RPC bytecode matching.
VerificationResult
The result of a verification attempt.

Enums§

VerificationMethod
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 forge CLI is available on the system.
rpc_url_for_chain
Get the RPC URL for a chain from environment or return a default.