Skip to main content

ERC1820ImplementerInterface

ERC1820ImplementerInterface

The interface a contract MUST implement if it is the implementer of some (other) interface for any address other than itself.

canImplementInterfaceForAddress

function canImplementInterfaceForAddress(bytes32 interfaceHash, address addr) external view returns (bytes32)

Indicates whether the contract implements the interface 'interfaceHash' for the address 'addr' or not.

NameTypeDescription
interfaceHashbytes32keccak256 hash of the name of the interface
addraddressAddress for which the contract will implement the interface
NameTypeDescription
[0]bytes32ERC1820_ACCEPT_MAGIC only if the contract implements 'interfaceHash' for the address 'addr'.