getCurrencyMetadata

Retrieves the metadata of a currency.

Example

import { getCurrencyMetadata } from "thirdweb/extensions/erc20";
const currencyMetadata = await getCurrencyMetadata({ contract });
function getCurrencyMetadata(

Parameters

The options for the transaction.

Type

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

Returns

let returnType: { decimals: number; name: string; symbol: string };

A promise that resolves to an object containing the currency metadata.