isERC20

Check if a contract supports the ERC20 interface.

Example

import { isERC20 } from "thirdweb/extensions/erc20";
const result = await isERC20({ contract });

Parameters

Returns

A boolean indicating whether the contract supports the ERC20 interface.