isERC1155

Check if a contract supports the ERC1155 interface.

Example

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