Monad SDK

AllDomains Monad EVM SDK Documentation

Overview

The AllDomains Monad EVM SDK is a library designed to interact with top-level domain (TLD) names on EVM-compatible chains (e.g., Monad). This SDK provides functionality to manage domain names, retrieve ownership details, and handle domain records across supported blockchains.

Supported Chains

  • Monad (EVM)

Supported TLDs

  • .mon

  • .nad

  • .chog

  • .mokadel

  • .molandak

  • .mouch

  • .moyaki

  • .salmonad

Installation

To install the AllDomains Monad EVM SDK, add the following line to your package.json or run the command:

Usage Examples

1. Initialize EVM Connection

2. Get All User Domains

3. Get Domains for a Specific TLD

4. Get Domain Owner

5. Get Name Record

6. Get Main Domain (Favourite Domain)

Core Methods (Available on Both Chains)

  • getAllUserDomains(userAccount): Retrieves all domains owned by a user.

  • getAllUserDomainsFromTld(userAccount, tld): Retrieves domains for a specific TLD.

  • getOwnerFromDomainTld(domainTld): Retrieves the owner of a domain.

  • getNameRecordFromDomainTld(domainTld): Retrieves detailed record data for a domain.

  • getMainDomain(userAddress): Retrieves the user's main domain.

Last updated