keccak256
of the first component of the label (eg, keccak256('ens')
for ens.eth
). For compatibility with ERC721, these are expressed as uint256 values rather than bytes32, but can be cast backwards and forwards transparently. The namehash of a name can be derived by computing keccak256(baseNode, labelHash)
, where basenode
is the namehash of the TLD the registrar manages - eg, namehash('eth')
.true
if a name is available for registration. Takes into account not-yet-migrated registrations from the legacy registrar. Registrar controllers may impose more restrictions on registrations than this contract (for example, a minimum name length), so this function should not be used to check if a name can be registered by a user. To check if a name can be registered by a user, check name availability via the controller.transferPeriodEnds
documents the unix timestamp at which it is no longer possible to migrate over registrations from the legacy registrar, and any non-migrated registrations become available for registration by anyone.controllers
allows callers to check if the supplied address is authorized as a registrar controller.operator
is authorized to transfer all tokens for owner
.ownerOf
returns the address that owns the registration identified by the label hash, or reverts if the registration does not exist. Registrations that have not yet been migrated from the legacy registrar are treated the same as registrations that do not exist.