DOCS

verifyThirdwebPrebuiltImplementation

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

function verifyThirdwebPrebuiltImplementation(
  contractName: string,
  chainId: number,
  explorerAPIUrl: string,
  explorerAPIKey: string,
  storage: ThirdwebStorage<IpfsUploadBatchOptions>,
  contractVersion: string,
  clientId?: string,
  secretKey?: string,
  constructorArgs?: ConstructorParamMap,
): Promise<string | string[]>;

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
);

Parameters

Returns

type ReturnType = Promise<string | string[]>;