World
Reference
Internals
ERC165 (interface)

IERC165

Git Source (opens in a new tab)

Interface for the ERC-165 standard as described in the EIP-165. Allows for contracts to be checked for their support of an interface. See: https://eips.ethereum.org/EIPS/eip-165 (opens in a new tab)

Functions

supportsInterface

Query if a contract implements an interface.

Interface identification is specified in ERC-165. This function uses less than 30,000 gas.

function supportsInterface(bytes4 interfaceID) external view returns (bool);

Parameters

NameTypeDescription
interfaceIDbytes4The interface identifier, as specified in ERC-165.

Returns

NameTypeDescription
<none>boolTrue if the contract implements interfaceID and interfaceID is not 0xffffffff, false otherwise.