Skip to main content
Resolvers are responsible for the actual process of translating names into addresses. Any contract that implements the relevant standards may act as a resolver in Namoshi.

Interface

Resolvers are specified in EIP-137. A resolver must implement the following method:
This function allows users to determine if a resolver supports a particular record type.

Record Types

The Namoshi Public Resolver (PublicResolver.sol) supports the following record types:

Citrea (EVM) Address

Resolvers must implement the addr function to return the Citrea address associated with a name.

Other Cryptocurrency Addresses

Resolvers may implement the addr function to return the address of other cryptocurrencies associated with a name, as specified in EIP-2304.

Content Hash

Resolvers may implement the contenthash function to return a content hash associated with a name, as specified in EIP-1577.

Text Records

Resolvers may implement the text function to return text records associated with a name, as specified in EIP-634.

Name Interface

Resolvers may implement the name function to return the name associated with a reverse record, as specified in EIP-181.

ABI Interface

Resolvers may implement the ABI function to return the ABI associated with a name, as specified in EIP-205.

Pubkey Interface

Resolvers may implement the pubkey function to return the public key associated with a name, as specified in EIP-619.