Retrieves the metadata of a currency.
import { getCurrencyMetadata } from "thirdweb/extensions/erc20"; const currencyMetadata = await getCurrencyMetadata({ contract });
function getCurrencyMetadata( options: BaseTransactionOptions,): Promise<GetCurrencyMetadataResult>;
The options for the transaction.
let options: { contract: ThirdwebContract<abi> } & T;
let returnType: { decimals: number; name: string; symbol: string };
A promise that resolves to an object containing the currency metadata.