Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.solidscipt.zoracle.xyz/llms.txt

Use this file to discover all available pages before exploring further.

The verify-source command submits the standard JSON compiler input for a deployed contract to the block explorer for the network you specify. Run it after deploy if you skipped automatic verification, or when you need to re-submit source for a contract that was deployed separately. The command reads the deployed address and constructor arguments from the deploy log automatically; supply --address and --args only when they are not present in the log.
solidscript verify-source <contract> -n <network>

Arguments

ArgumentDescription
<contract>Name of the deployed contract whose source you want to verify

Options

FlagDescription
-n, --network <name>Network whose explorer will receive the verification request
--address <addr>Deployed contract address. Reads from the deploy log when omitted.
-a, --args <args...>Constructor arguments. Reads from the deploy log when omitted.
--api-key <key>Etherscan API key. Falls back to the value set in config or the environment.

Examples

# Set your API key once, then verify
npx solidscript config set etherscan-key YOUR_KEY
npx solidscript verify-source MyToken -n base-sepolia

# Verify a contract not in the deploy log
npx solidscript verify-source MyToken -n base-sepolia --address 0x... --args 1000000
Store your Etherscan API key with solidscript config set etherscan-key so you do not have to pass --api-key on every invocation.