Verify a contract on the Zenith explorer
zenith_verify_contractVerify a deployed contract through an Etherscan-compatible explorer by compiling source locally, checking bytecode match, submitting standard-JSON input, and waiting for the verification result.
Instructions
Verifies a deployed contract through the explorer's Etherscan-compatible API. From a .sol file it compiles locally with the given settings, checks the bytecode matches the deployed code, then submits the exact standard-JSON input and waits for the result. Also accepts a standard-JSON input file (for example from forge verify-contract --show-standard-json-input).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"address": "<address>"
},
"name": "zenith_verify_contract"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| runs | No | ||
| address | Yes | ||
| optimize | No | ||
| evmVersion | No | EVM version; Zenith runs "prague" | prague |
| sourcePath | No | Path to the .sol file | |
| contractName | No | Contract to use when the file has several | |
| qualifiedName | No | "File.sol:Contract", with standardJsonPath | |
| compilerVersion | No | solc version, e.g. "0.8.30" (default: bundled, if the pragma allows) | |
| constructorArgs | No | ABI-encoded constructor arguments (hex), if any | |
| standardJsonPath | No |