getContractMetadata

Retrieves the contract metadata including name and symbol.

Example

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

Parameters

Returns

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