ThirdwebSDK.getToken() 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 token = await sdk.getToken("0x1234...");
+ const token = await sdk.getContract("0x1234...", "token");
Get an instance of a Token contract
Signature:
getToken(contractAddress: string): Promise<import("..").Token>;
Parameters
Parameter | Type | Description |
---|---|---|
contractAddress | string | the address of the deployed contract |
Returns:
Promise<import("..").Token>