Class MiniAssetHolding

A simplified version of AssetHolding

Hierarchy

Constructors

  • Creates a new MiniAssetHolding object.

    Parameters

    • __namedParameters: { address: string; amount: number | bigint; deleted?: boolean; isFrozen: boolean; optedInAtRound?: number | bigint; optedOutAtRound?: number | bigint }
      • address: string
      • amount: number | bigint
      • Optional deleted?: boolean
      • isFrozen: boolean
      • Optional optedInAtRound?: number | bigint
      • Optional optedOutAtRound?: number | bigint

    Returns MiniAssetHolding

Properties

address: string
amount: number | bigint
attribute_map: Record<string, string>
deleted?: boolean

Whether or not this asset holding is currently deleted from its account.

isFrozen: boolean
optedInAtRound?: number | bigint

Round during which the account opted into the asset.

optedOutAtRound?: number | bigint

Round during which the account opted out of the asset.

Methods

  • Get an object ready for encoding to either JSON or msgpack.

    Parameters

    • binary: boolean = false

      Use true to indicate that the encoding can handle raw binary objects (Uint8Arrays). Use false to indicate that raw binary objects should be converted to base64 strings. True should be used for objects that will be encoded with msgpack, and false should be used for objects that will be encoded with JSON.

    Returns Record<string, any>

Generated using TypeDoc