Skip to main content

ThirdwebSDK.getPack() 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 pack = await sdk.getPack("0x1234...");
+ const pack = await sdk.getContract("0x1234...", "pack");

Get an instance of a Pack contract

Signature:

getPack(contractAddress: string): Promise<import("..").Pack>;

Parameters

ParameterTypeDescription
contractAddressstringthe address of the deployed contract

Returns:

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