Developer Guide
Introduction

Developer Integration

Working with the vet.domains contracts is simple and similar to regular ENS integrations.

Please refer to the sub-sections for example code snippets. If you encounter any issues or need additional information, feel free to reach out to us.

Name Resolution

Resolving names usually involves three steps.

  1. Convert the name or reverse entry into a bytes32 id (ethers.namehash() helps!)
  2. Identify the resolver in the registry that holds the data for the given node
  3. Request the configured record value from the resolver

To perform reverse lookups from an address to a primary name, generate a reverse entry in this format:

<address without leading 0x>.addr.reverse

And get a text record using name(node) on the resolver.

Due to technical limitations, the primary name can be set to any value by its owner. To ensure accuracy in critical scenarios, always verify the forward (name to address) lookup before using it in important situations. The Resolve Utility Contract deployed contains an on-chain verification process that is reliable.