token

Calls the "token" function on the contract.

Example

import { token } from "thirdweb/extensions/vote";
const result = await token({
contract,
});
function token(options: BaseTransactionOptions): Promise<string>;

Parameters

The options for the token function.

Type

let options: { contract: ThirdwebContract<abi> } & T;

Returns

let returnType: Promise<string>;

The parsed result of the function call.