Loading…
The explorer exposes an Etherscan-compatible verification API.
forge verify-contract 0xe66de362e08e291144d98e2019418bf792007df9 src/MyContract.sol:MyContract \ --chain-id 305583 \ --verifier etherscan --verifier-url https://explorer-devnet.zroarus.com/api/etherscan --etherscan-api-key none
// hardhat.config.ts
etherscan: {
apiKey: { zroarus: "none" },
customChains: [{
network: "zroarus",
chainId: 305583,
urls: { apiURL: "https://explorer-devnet.zroarus.com/api/etherscan", browserURL: "https://explorer-devnet.zroarus.com" },
}],
},
// then: npx hardhat verify --network zroarus 0xe66de362e08e291144d98e2019418bf792007df9 <constructor args>How matching works
The source is compiled with the official, checksum-verified solc build. An exact match reproduces the deployed bytecode byte for byte; a partial match differs only in the metadata hash. Immutable values and linked libraries are read from the chain.