Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AssetHolding

Describes an asset held by an account. Definition: data/basics/userBalance.go : AssetHolding

Hierarchy

Index

Constructors

  • new AssetHolding(amount: number | bigint, assetId: number | bigint, isFrozen: boolean): AssetHolding

Properties

amount: number | bigint

(a) number of units held.

assetId: number | bigint

Asset ID of the holding.

attribute_map: Record<string, string>
isFrozen: boolean

(f) whether or not the holding is frozen.

Methods

  • get_obj_for_encoding(binary?: boolean): Record<string, any>
  • 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