useTokenDecimals
Get token decimals
Example
const {
data: decimals,
isLoading,
error,
} = useTokenDecimals(contract);
Parameters
Returns
a response object that includes the decimals of the ERC20 token
type ReturnType = UseQueryResult<number, unknown>;