Multichain Verification
Last updated
Last updated
For repeated or multichain contract verification, it's best to use the to automate source code submission .
You may specify a
chainId
along with an to submit verification for any Etherscan-like explorer
In Postman, set your request method to HTTP POST and your URL to https://api.etherscan.io/api
.
Under the Body tab and using form-data
, specify the "module" to contract
and "action" to verifysourcecode.
All API based verification must be authenticated, include your under the "apikey" field.
Select the chain you've deployed your contract, which is supported by an Etherscan-like explorer.
Specify it under the "chainId" parameter, such as 1
for Ethereum and 8453
for Base.
We support 2 formats, solidity-single-file
or solidity-standard-json-input.
Paste your source code under "sourceCode" and the code format under the "codeformat" parameter.
Include the contract address as "contractaddress", beginning with "0x".
Specify your contract file path and contract name separated by a colon as "contractname", such as "contracts/Verified.sol:Verified".
Using JSON is the gold standard for verification, as you can ( if you use imports such as from ).
Optionally if your contract uses , you may specify them too under the "constructorArguments" parameter in format.
Select the compiler version used from as your "compilerversion".
Click Send and you'll receive a guid
which you can then .
Alternatively if everything went well, you'll see the happy green checkmark on your