IERC165
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
| Name | Type | Description | 
|---|---|---|
| interfaceId | bytes4 | The interface identifier, as specified in ERC-165 | 
Returns
| Name | Type | Description | 
|---|---|---|
| <none> | bool | trueif the contract implementsinterfaceIDandinterfaceIDis not 0xffffffff,falseotherwise |