ERC165
Inherits: IERC165
*Implementation of the {IERC165} interface. Contracts that want to implement ERC-165 should inherit from this contract and override {supportsInterface} to check for the additional interface id that will be supported. For example:
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
}
```*
## Functions
### supportsInterface
Query if a contract implements an interface
*Interface identification is specified in ERC-165. This function
uses less than 30,000 gas.*
```solidity
function supportsInterface(bytes4 interfaceId) public view virtual returns (bool);
Parameters
| Name | Type | Description |
|---|---|---|
interfaceId | bytes4 |
Returns
| Name | Type | Description |
|---|---|---|
<none> | bool | true if the contract implements interfaceID and interfaceID is not 0xffffffff, false otherwise |