Skip to main content
POST
/
v2
/
api
Verify Source Code on zkSync
curl --request POST \
  --url https://api.etherscan.io/v2/api

Query Parameters

apikey
string
default:"YourApiKeyToken"
Your Etherscan API key.
chainid
string
default:"324"
Chain ID to query, eg 324 for zkSync Era from our supported chains.
module
string
default:"contract"
Set to contract for this endpoint.
action
string
default:"verifysourcecode"
Set to verifysourcecode for this endpoint.
codeformat
string
default:"solidity-standard-json-input"
Use solidity-single-file for a single file or solidity-standard-json-input for JSON input.
sourceCode
string
The Solidity source code to verify.
constructorArguments
string
Optional constructor arguments used in contract deployment.
contractaddress
string
default:"0xf66f984e0b73453193b452f84c8fff0ed19f6d81"
The address where the contract is deployed.
contractname
string
default:"contracts/Verified.sol:Verified"
The contract name, including path if applicable.
compilerversion
string
default:"v0.8.24+commit.e11b9ed9"
Compiler version used for compilation.
zksolcVersion
string
default:"1.3.13"
zkSync compiler version used for compilation.
compilermode
string
default:"zksync"
zkSync compiler mode to process the build artifacts.
I