Skip to main content

ThirdwebSDK.getTokenDrop() 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 tokenDrop = await sdk.getTokenDrop("0x1234...");
+ const tokenDrop = await sdk.getContract("0x1234...", "token-drop");

Get an instance of a Token Drop contract

Signature:

getTokenDrop(contractAddress: string): Promise<import("..").TokenDrop>;

Parameters

ParameterTypeDescription
contractAddressstringthe address of the deployed contract

Returns:

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