verifyThirdwebPrebuiltImplementation

Verifies a Thirdweb Prebuilt Contract, e.g. Marketplace, DropERC721, etc

Example

const explorerAPIUrl = ""; // e.g. https://api.etherscan.io/api
const explorerAPIKey = ""; // Generate API key on the explorer
const chainId = 1; // Change according to the network
await sdk.verifier.verifyThirdwebPrebuiltImplementation(
"DropERC721",
chainId,
explorerAPIUrl,
explorerAPIKey,
storage, // this could be used from the SDK instance, e.g. sdk.storage
);
function verifyThirdwebPrebuiltImplementation(
contractName: string,
chainId: number,
explorerAPIUrl: string,
explorerAPIKey: string,
contractVersion: string,
clientId?: string,
secretKey?: string,
type?: ExplorerType,
constructorArgs?: ConstructorParamMap,
): Promise<string | Array<string>>;

Parameters

Name of the contract to verify

Type

let contractName: string;

Chain ID of the network

Type

let chainId: number;

Explorer API URL

Type

let explorerAPIUrl: string;

Explorer API Key

Type

let explorerAPIKey: string;

Storage instance

Type

Type

let contractVersion: string;

Type

let clientId: string;

Type

let secretKey: string;

Type

let type: ExplorerType;

Type

let constructorArgs: ConstructorParamMap;

Returns

let returnType: Promise<string | Array<string>>;