Class InitiatorAddr

Represents an address for an initiator, which can either be a public key or an account hash.

Hierarchy

  • InitiatorAddr

Constructors

Properties

Methods

Constructors

Properties

accountHash?: AccountHash

The account hash of the initiator, if available.

publicKey?: PublicKey

The public key of the initiator, if available.

Methods

  • Converts the InitiatorAddr instance to a byte array representation. The result depends on whether the address is a public key or an account hash.

    Returns

    A Uint8Array representing the initiator address.

    Returns Uint8Array

  • Converts the InitiatorAddr instance to a JSON object. The JSON object will contain either a publicKey or an accountHash depending on which is available.

    Returns

    A JSON object representing the initiator address.

    Returns unknown

  • Creates an InitiatorAddr instance from a JSON object. The JSON object can contain either a publicKey or an accountHash string.

    Returns

    A new InitiatorAddr instance.

    Parameters

    • json: any

      The JSON object containing the address data.

    Returns InitiatorAddr

Generated using TypeDoc