Class which can be used to make registry record queries.

Constructors

  • Parameters

    • network: NetworkType
    • provider: Provider
    • mnsAddress: string

    Returns MNS

Properties

mns: MetrixContract
network: NetworkType
provider: Provider

Methods

  • Returns the name for an address from the default reverse resolver

    Parameters

    • address: string

      an EVM compatible address

    Returns Promise<undefined | string>

    a name or undefined if one is not found

  • Returns the name for an address from the resolver

    Parameters

    • address: string

      an EVM compatible address

    • resolverAddr: string

      a specific resolver address to use

    Returns Promise<undefined | string>

    a name or undefined if one is not found

  • Returns a Name object which can be used to make record queries

    Parameters

    • name: string

      The name for example 'first.mrx'

    • Optionalresolver: string

      The resolver address

    Returns Name

    a Name object

  • Returns a Resolver object which can be used to make record queries

    Parameters

    • address: string

      an EVM compatible address

    Returns Resolver

    a Resolver object

  • Set a reverse record for an address

    Parameters

    • name: string

      The name for example 'first.mrx'

    Returns Promise<Transaction>

    a transaction object