Query Parameters
Your Etherscan API key.
Chain ID to query, eg
1 for Ethereum, 8453 for Base from our supported chains.Set to
contract for this endpoint.Set to
verifysourcecode for this endpoint.The address where the contract is deployed.
The Solidity source code to verify.
Use
solidity-single-file for a single file or solidity-standard-json-input for JSON input.The contract name, including path if applicable. If
codeformat=solidity-standard-json-input, then enter contractname as erc20.sol:erc20.Compiler version used for compilation.
Use
1 if optimization was used or 0 if disabled, specify runs below.Number of optimization runs.
Optional constructor arguments used in contract deployment.
Use compiler
default or specify an EVM version such as byzantium, shanghai.The open source license to associate with the verified source code, e.g
3 for MIT.