Contract Verification
Verify contracts on any EVM.
verifyThirdwebContract
Verify one of thirdweb’s prebuilt contracts.
const explorerAPIUrl = ""; // e.g. https://api.etherscan.io/api
const explorerAPIKey = ""; // Generate API key on the explorer
await sdk.verifier.verifyThirdwebContract(
"DropERC721", // Name of the prebuilt contract
explorerAPIUrl,
explorerAPIKey,
);
Configuration
verifyContract
Verifies any contract deployed via thirdweb on a given chain. Can be used for custom contracts.
const contractAddress = "";
const explorerAPIUrl = ""; // e.g. https://api.etherscan.io/api
const explorerAPIKey = ""; // Generate API key on the explorer
await sdk.verifier.verifyContract(
contractAddress,
explorerAPIUrl,
explorerAPIKey,
);