isERC20

Check if a contract supports the ERC20 interface.

Example

import { isERC20 } from "thirdweb/extensions/erc20";
const result = await isERC20({ contract });
function isERC20(options: BaseTransactionOptions): Promise<boolean>;

Parameters

The transaction options.

Type

let options: { contract: ThirdwebContract<abi> } & T;

Returns

let returnType: Promise<boolean>;

A boolean indicating whether the contract supports the ERC20 interface.