Check if a contract is an ERC20 token.
import { isERC20 } from "thirdweb/extensions/erc20";import { resolveContractAbi } from "thirdweb/contract"; const abi = await resolveContractAbi(contract);const selectors = abi .filter((f) => f.type === "function") .map((f) => toFunctionSelector(f)); const result = await isERC20(selectors);
function isERC20(availableSelectors: Array<string>): boolean;
let availableSelectors: Array<string>;
let returnType: boolean;
A boolean indicating whether the contract is an ERC20 token.