Function verifyThirdwebPrebuiltImplementation

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

    Parameters

    • contractName: string

      Name of the contract to verify

    • chainId: number

      Chain ID of the network

    • explorerAPIUrl: string

      Explorer API URL

    • explorerAPIKey: string

      Explorer API Key

    • storage: ThirdwebStorage<IpfsUploadBatchOptions>

      Storage instance

    • contractVersion: string = "latest"
    • Optional clientId: string
    • Optional secretKey: string
    • Optional constructorArgs: ConstructorParamMap

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

Generated using TypeDoc