Time to read: 1 min
Resolver Specs
Resolvers may implement any subset of the record types specified here. Where a record types specification requires a resolver to provide multiple functions, the resolver MUST implement either all or none of them.
Resolvers MUST specify a fallback function that throws.
Resolvers must implement ERC-165 interface detection standard. supportsInterface method must return if the interfaceID queried is simply equal to the signature hash of the function that resolves the desired resource record.
Contract address
Provides the contract address for the specified domain.
function addr(bytes32 node) returns (address);
node
: the namehash of the domain to query for.- Returns the contract address of the specified domain. A zero address is returned if the node has no address specified.
When updated emits
event AddrChanged(bytes32 indexed node, address a);
Interface ID: 0x3b3b57de
Specification: EIP-137
Resolution protocol:
- Query the resolver address to the registry.
- Query
addr
to the resolver contract. - Check for non zero-address response.
No modifications to the adoption of this protocol.