Class SimulateTransactionGroupResult

Simulation result for an atomic transaction group

Hierarchy

Constructors

Properties

appBudgetAdded?: number | bigint

Total budget added during execution of app calls in the transaction group.

appBudgetConsumed?: number | bigint

Total budget consumed during execution of app calls in the transaction group.

attribute_map: Record<string, string>
failedAt?: (number | bigint)[]

If present, indicates which transaction in this group caused the failure. This array represents the path to the failing transaction. Indexes are zero based, the first element indicates the top-level transaction, and successive elements indicate deeper inner transactions.

failureMessage?: string

If present, indicates that the transaction group failed and specifies why that happened

Simulation result for individual transactions

unnamedResourcesAccessed?: SimulateUnnamedResourcesAccessed

These are resources that were accessed by this group that would normally have caused failure, but were allowed in simulation. Depending on where this object is in the response, the unnamed resources it contains may or may not qualify for group resource sharing. If this is a field in SimulateTransactionGroupResult, the resources do qualify, but if this is a field in SimulateTransactionResult, they do not qualify. In order to make this group valid for actual submission, resources that qualify for group sharing can be made available by any transaction of the group; otherwise, resources must be placed in the same transaction which accessed them.

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