Skip to main content

ThirdwebSDK.getContractList() method

Return all the contracts deployed by the specified address

Example

const contracts = sdk.getContractList("{{wallet_address}}");

Signature:

getContractList(walletAddress: string): Promise<{
address: string;
contractType: "edition-drop" | "custom" | "edition" | "marketplace" | "multiwrap" | "nft-collection" | "nft-drop" | "pack" | "signature-drop" | "split" | "token-drop" | "token" | "vote";
metadata: () => Promise<any>;
}[]>;

Parameters

ParameterTypeDescription
walletAddressstringthe deployed address

Returns:

Promise<{ address: string; contractType: "edition-drop" | "custom" | "edition" | "marketplace" | "multiwrap" | "nft-collection" | "nft-drop" | "pack" | "signature-drop" | "split" | "token-drop" | "token" | "vote"; metadata: () => Promise<any>; }[]>