Implements

Constructors

Properties

jackalClient: IClientHandler
signingClient: null | TJackalSigningClient

Methods

  • Get all RNS names registered to user.

    Parameters

    • Optional pagination: IPageRequest

      Optional values to fetch more than first 100 results.

    Returns Promise<TQueryListOwnedNamesResponseStrict>

    • Pagination and array of DName.
  • Finds all currently registered RNS names.

    Parameters

    • Optional pagination: IPageRequest

      Optional values to fetch more than first 100 results.

    Returns Promise<TQueryAllNamesResponseStrict>

    • Pagination and array of DName.
  • Get all RNS names registered to target address.

    Parameters

    • address: string

      Jackal address to check.

    • Optional pagination: IPageRequest

      Optional values to fetch more than first 100 results.

    Returns Promise<TQueryListOwnedNamesResponseStrict>

    • Pagination and array of DName.
  • List all outstanding bids on all names for all users.

    Parameters

    • Optional pagination: IPageRequest

      Optional values to fetch more than first 100 results.

    Returns Promise<TQueryAllBidsResponseStrict>

  • Find primary RNS for target wallet address. Defaults to own jkl address.

    Parameters

    • Optional address: string

      Jackal Bech32 address to check.

    Returns Promise<Names>

  • Protected

    Create Msg for accepting a bid on the user's RNS.

    Parameters

    • rns: string

      The RNS to accept the bid for.

    • from: string

      The Jackal address to accept the bid from.

    Returns EncodeObject

  • Protected

    Create Msg for adding a subdomain entry to an RNS.

    Parameters

    • rns: string

      RNS to transfer.

    • linkedWallet: string

      Jackal address to link new sub RNS to.

    • subRns: string

      Sub RNS to create.

    • data: IRnsMetaData

      Optional object to include in sub RNS data field.

    Returns EncodeObject

  • Protected

    Create Msg for submitting an offer on another user's RNS.

    Parameters

    • rns: string

      RNS to submit offer on.

    • bid: Coin

      Value of offer as DCoin instance.

    Returns EncodeObject

  • Protected

    Create Msg for purchasing RNS listed on market.

    Parameters

    • rns: string

      RNS to purchase.

    Returns EncodeObject

  • Protected

    Create Msg to retract offer on another user's RNS.

    Parameters

    • rns: string

      RNS to retract offer from.

    Returns EncodeObject

  • Protected

    Create Msg to delete an RNS subdomain entry.

    Parameters

    • rns: string

      Full RNS to remove.

    Returns EncodeObject

  • Protected

    Create Msg to remove user's RNS from the market.

    Parameters

    • rns: string

      RNS to remove.

    Returns EncodeObject

  • Protected

    Create Msg to activate user in the RNS system and to generate free account RNS.

    Returns EncodeObject

  • Protected

    Create Msg to add user's RNS to the market.

    Parameters

    • rns: string

      RNS to list on market.

    • price: Coin

      Value to buy as DCoin instance.

    Returns EncodeObject

  • Protected

    Create Msg to set new primary RNS.

    Parameters

    • rns: string

      RNS to make primary for wallet address.

    Returns EncodeObject

  • Protected

    Create Msg to register new RNS.

    Parameters

    • rns: string

      RNS address to register.

    • primary: boolean

      If RNS should be set as primary.

    • yearsToRegister: number

      Duration to register for in years.

    • data: IRnsMetaData

      Metadata object to include in data field.

    Returns EncodeObject

  • Protected

    Create Msg to transfer user's RNS to another user.

    Parameters

    • rns: string

      RNS to transfer.

    • receiver: string

      Jackal address to transfer to.

    Returns EncodeObject

  • Protected

    Create Msg to update RNS metadata.

    Parameters

    • rns: string

      RNS address to update.

    • data: IRnsMetaData

      Optional object to replace existing contents of data field.

    Returns EncodeObject

  • Convert RNS address to wallet address.

    Parameters

    • name: string

      RNS name to convert.

    • Optional prefix: TAddressPrefix

      Optional wallet prefix, defaults to jkl.

    Returns Promise<string>

    • Wallet address of RNS owner.
  • Protected

    Ensures RNS address ends with ".jkl".

    Parameters

    • name: string

      RNS address to process.

    Returns string

    • Source RNS address with ".jkl" included.
  • Protected

    Enforces data field is valid JSON. Used by:

    • makeRegisterMsg()
    • makeUpdateMsg()
    • makeAddRecordMsg()

    Parameters

    Returns string