getContractMetadata

Retrieves the contract metadata including name and symbol.

Example

import { getContractMetadata } from "thirdweb/extensions/common";
const metadata = await getContractMetadata({ contract });
function getContractMetadata(
): Promise<{ name: string; symbol: string }>;

Parameters

The transaction options.

Type

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

Returns

let returnType: Promise<{ name: string; symbol: string }>;

A promise that resolves to an object containing the resolved metadata, name, and symbol.