Retrieves the number of decimal places for a given ERC20 contract.
import { decimals } from "thirdweb/extensions/erc20"; const tokenDecimals = await decimals({ contract });
function decimals(options: BaseTransactionOptions): Promise<number>;
The options for the transaction.
let options: { contract: ThirdwebContract<abi> } & T;
let returnType: Promise<number>;
A promise that resolves to the number of decimal places.