Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DryrunTxnResult

DryrunTxnResult contains any LogicSig or ApplicationCall program debug information and state updates from a dryrun.

Hierarchy

Index

Constructors

  • new DryrunTxnResult(__namedParameters: { appCallMessages?: string[]; appCallTrace?: DryrunState[]; budgetAdded?: number | bigint; budgetConsumed?: number | bigint; cost?: number | bigint; disassembly: string[]; globalDelta?: EvalDeltaKeyValue[]; localDeltas?: AccountStateDelta[]; logicSigDisassembly?: string[]; logicSigMessages?: string[]; logicSigTrace?: DryrunState[]; logs?: Uint8Array[] }): DryrunTxnResult
  • Creates a new DryrunTxnResult object.

    Parameters

    • __namedParameters: { appCallMessages?: string[]; appCallTrace?: DryrunState[]; budgetAdded?: number | bigint; budgetConsumed?: number | bigint; cost?: number | bigint; disassembly: string[]; globalDelta?: EvalDeltaKeyValue[]; localDeltas?: AccountStateDelta[]; logicSigDisassembly?: string[]; logicSigMessages?: string[]; logicSigTrace?: DryrunState[]; logs?: Uint8Array[] }
      • Optional appCallMessages?: string[]
      • Optional appCallTrace?: DryrunState[]
      • Optional budgetAdded?: number | bigint
      • Optional budgetConsumed?: number | bigint
      • Optional cost?: number | bigint
      • disassembly: string[]
      • Optional globalDelta?: EvalDeltaKeyValue[]
      • Optional localDeltas?: AccountStateDelta[]
      • Optional logicSigDisassembly?: string[]
      • Optional logicSigMessages?: string[]
      • Optional logicSigTrace?: DryrunState[]
      • Optional logs?: Uint8Array[]

    Returns DryrunTxnResult

Properties

appCallMessages?: string[]
appCallTrace?: DryrunState[]
attribute_map: Record<string, string>
budgetAdded?: number | bigint

Budget added during execution of app call transaction.

budgetConsumed?: number | bigint

Budget consumed during execution of app call transaction.

cost?: number | bigint

Net cost of app execution. Field is DEPRECATED and is subject for removal. Instead, use budget-added and `budget-consumed.

disassembly: string[]

Disassembled program line by line.

globalDelta?: EvalDeltaKeyValue[]

Application state delta.

localDeltas?: AccountStateDelta[]
logicSigDisassembly?: string[]

Disassembled lsig program line by line.

logicSigMessages?: string[]
logicSigTrace?: DryrunState[]
logs?: Uint8Array[]

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