Skip to main content

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

Get an instance of a Vote contract

Signature:

getVote(contractAddress: string): Promise<import("..").Vote>;

Parameters

ParameterTypeDescription
contractAddressstringthe address of the deployed contract

Returns:

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