isERC20

Check if a contract is an ERC20 token.

Example

import { isERC20 } from "thirdweb/extensions/erc20";
const result = await isERC20({ contract });
function isERC20(availableSelectors: Array<string>): boolean;

Parameters

Type

let availableSelectors: Array<string>;

Returns

let returnType: boolean;

A boolean indicating whether the contract is an ERC20 token.