Class AvmValue

Represents an AVM value.

Hierarchy

Constructors

  • Creates a new AvmValue object.

    Parameters

    • __namedParameters: { bytes?: string | Uint8Array; type: number | bigint; uint?: number | bigint }
      • Optional bytes?: string | Uint8Array
      • type: number | bigint
      • Optional uint?: number | bigint

    Returns AvmValue

Properties

attribute_map: Record<string, string>
bytes?: Uint8Array

bytes value.

type: number | bigint

value type. Value 1 refers to bytes, value 2 refers to uint64

uint?: number | bigint

uint value.

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