name

Retrieves the name associated with the given contract.

Example

import { name } from "thirdweb/extensions/common";
const contractName = await name({ contract });
function name(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.