Skip to main content

ThirdwebSDK.getNFTCollection() method

Warning: This API is now obsolete.

This method is deprecated and will be removed in a future major version. You should use instead.

- const signatureDrop = await sdk.getNFTCollection("0x1234...");
+ const signatureDrop = await sdk.getContract("0x1234...", "nft-collection");

Get an instance of a NFT Collection Drop contract

Signature:

getNFTCollection(contractAddress: string): Promise<import("..").NFTCollection>;

Parameters

ParameterTypeDescription
contractAddressstringthe address of the deployed contract

Returns:

Promise<import("..").NFTCollection>