This guide shows you how to verify the source code of a SolidScript-deployed contract on Basescan. By the end, your contract’s source code will be publicly visible and marked as verified on the explorer, giving users and auditors full transparency into what’s running on-chain. SolidScript submits source verification to Etherscan-family explorers through the v2 multichain API. One Etherscan API key works across Base, Optimism, Arbitrum, Polygon, Ethereum, and supported testnets.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.
Prerequisites
You need a free Etherscan API key. Get one at etherscan.io.One-time setup
Before verifying, store your API key in SolidScript’s user-level config so you don’t need to pass it on every command:ETHERSCAN_API_KEY environment variable or the --api-key flag on verify-source.
Automatic verification
When anetherscan-key is configured and the target network is not anvil, deploy verifies automatically after a successful deployment:
--no-verify:
Manual verification
Useverify-source when you need to verify a contract that was deployed earlier, or when automatic verification was skipped:
If Basescan returns “Already Verified”, the deployment is fine. That usually means identical bytecode was verified earlier.