symbol

Retrieves the name associated with the given contract.

Example

import { symbol } from "thirdweb/extensions/common";
const contractSymbol = await symbol({ contract });
function symbol(options: BaseTransactionOptions): Promise<string>;

Parameters

The options for the transaction.

Type

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

Returns

let returnType: Promise<string>;

A promise that resolves to the name associated with the contract.