Skip to main content

mega verify

The verify command submits contract source information through Foundry’s forge verify-contract.

Usage

Arguments

Network options

Although the shared network option defaults to local, local contracts cannot be explorer-verified. Pass either --network testnet or --network mainnet.

Common options

Examples

Verify on MegaETH testnet

Verify on MegaETH mainnet

Use a custom RPC

Mega CLI validates a custom RPC’s chain ID before invoking Foundry.