name

Retrieves the name associated with the given contract.

Example

import { name } from "thirdweb/extensions/common";
const contractName = await name({ contract });

Parameters

Returns

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