The ENS registry is specified in EIP-137 https://eips.ethereum.org/EIPS/eip-137
The ENS registry is specified in EIP-137 https://eips.ethereum.org/EIPS/eip-137
The reverse registrar is specified in EIP 181 https://eips.ethereum.org/EIPS/eip-181
addr()
).supportsInterface()
).name()
).ABI()
).pubkey()
).text()
).contenthash()
).addr()
).Tld : Top Level Domain 顶级域名
ENS has two principal components: the registry, and resolvers.
The ENS registry consists of a single smart contract that maintains a list of all domains and subdomains, and stores three critical pieces of information about each:
- The owner of the domain
- The resolver for the domain
- The caching time-to-live for all records under the domain
ENS has documentation for a variety of audiences, including dapp developers and contract developers, as well as reference documentation.
Check out the dapp developer guide, starting with ENS Enabling your Dapp. You'll want to choose one of the many available ENS Libraries to get started working with ENS.
Check out the Contract Developer Guide, starting with Resolving Names On-chain. You can also write your own resolver (to customise the process of looking up names), or your own registrar (to customise the process of registering new names).
Check out the Contract API Reference. We have reference documentation for ENS's core contract, the registry, for resolvers, and for commonly-used registrars such as the Test registrar, reverse registrar, and the .eth registrar.