Skip to main content
POST
/
v2
/
api
Verify Stylus Source Code
curl --request POST \
  --url https://api.etherscan.io/v2/api
{
    "status": "1",
    "message": "OK",
    "result": "a7lpxkm9kpcpicx7daftmjifrfhiuhf5vqqnawhkfhzfrcpnxj"
}
This endpoint is only available for the Arbitrum stack chains.

Query Parameters

apikey
string
default:"YourApiKeyToken"
Your Etherscan API key.
chainid
string
default:"42161"
Chain ID to query, eg 42161 for Arbitrum One 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:"stylus"
Use stylus for Stylus projects.
sourceCode
string
Public Git repository that hosts the Stylus source code.
contractaddress
string
default:"0x915f0B2f34F5B5b84D1F066b398D7F0E3C2F8f83"
The address where the contract is deployed.
contractname
string
default:"stylus_hello_world"
The contract name that matches your Stylus deployment.
compilerversion
string
default:"stylus:0.5.3"
Stylus compiler version used for compilation.
licenseType
integer
default:"3"
License identifier from the open source license options.
{
    "status": "1",
    "message": "OK",
    "result": "a7lpxkm9kpcpicx7daftmjifrfhiuhf5vqqnawhkfhzfrcpnxj"
}
I