isERC721

Check if a contract supports the ERC721 interface.

Example

import { isERC721 } from "thirdweb/extensions/erc721";
const result = await isERC721({ contract });
function isERC721(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 ERC721 interface.