Class TransactionTarget

Represents a transaction target, which could be one of the following types:

  • Native (no specific target)
  • Stored (contract or stored item target)
  • Session (session-based target)

Hierarchy

  • TransactionTarget

Constructors

Properties

native?: object

Native transaction target, representing a transaction with no specific target.

session?: SessionTarget

Session transaction target, representing a session-based transaction.

stored?: StoredTarget

Stored transaction target, representing a transaction that targets a stored contract or item.

Methods

  • Serializes the TransactionTarget into a byte array.

    Returns

    A Uint8Array representing the serialized transaction target.

    Returns Uint8Array

  • Converts the TransactionTarget into a JSON-compatible format.

    Returns

    The JSON representation of the TransactionTarget.

    Throws

    Error if the target type is unknown.

    Returns any

Generated using TypeDoc