Class TealValue

An interface for objects that can be encoded and decoded to/from msgpack and JSON.

Implements

Constructors

  • Parameters

    • params: {
          bytes?: Uint8Array;
          type: number;
          uint?: bigint;
      }
      • Optional bytes?: Uint8Array
      • type: number
      • Optional uint?: bigint

    Returns TealValue

Properties

bytes?: Uint8Array
type: number

Type determines the type of the value.

  • 1 represents the type of a byte slice in a TEAL program
  • 2 represents the type of an unsigned integer in a TEAL program
uint?: bigint
encodingSchema: NamedMapSchema = ...

Methods

  • Extract the encoding data for this object. This data, after being prepared by the encoding Schema, can be encoded to msgpack or JSON.

    Returns Map<string, unknown>

Generated using TypeDoc