Class encompassing basic and advanced methods needed for interaction with RNS addresses on the chain.

Hierarchy

  • RnsHandler

Implements

Constructors

Properties

walletRef: IWalletHandler

Methods

  • Find owner's address using RNS address.

    Parameters

    • rns: string

      RNS address to search.

    Returns Promise<string>

    • Owner's address if found, defaults to empty string if no match found.
  • 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

    • The Msg for processing by the chain.
  • Create Msg for submitting an offer on another user's RNS.

    Parameters

    • rns: string

      RNS to submit offer on.

    • bid: string

      Value of offer in ujkl. Example: "1000000ujkl" (1 $JKL).

    Returns EncodeObject

    • The Msg for processing by the chain.
  • Create Msg for purchasing RNS listed on market.

    Parameters

    • rns: string

      RNS to purchase.

    Returns EncodeObject

    • The Msg for processing by the chain.
  • Create Msg to retract offer on another user's RNS.

    Parameters

    • rns: string

      RNS to retract offer from.

    Returns EncodeObject

    • The Msg for processing by the chain.
  • Create Msg to add user's RNS to the market.

    Parameters

    • rns: string

      RNS to list on market.

    • price: string

      Price of offer in ujkl. Example: "1000000ujkl" (1 $JKL).

    Returns EncodeObject

    • The Msg for processing by the chain.
  • 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

    • The Msg for processing by the chain.
  • Create Msg to update RNS metadata.

    Parameters

    • rns: string

      User's RNS to update.

    • data: string

      JSON.stringified new metadata to replace existing data.

    Returns EncodeObject

    • The Msg for processing by the chain.

Generated using TypeDoc