Class TransactionV1

Represents a TransactionV1 object, including its hash, payload, and approvals.

Hierarchy

  • TransactionV1

Constructors

Properties

approvals: Approval[]

The approvals for the transaction.

hash: Hash

The hash of the transaction.

The payload of the transaction. A merge of header and body concepts from before.

Methods

  • Validates the transaction by checking the transaction hash and the approval signatures.

    Throws

    Throws errors if validation fails.

    Returns boolean

  • Converts a JSON representation of a TransactionV1 to a TransactionV1 object.

    Returns

    A TransactionV1 object.

    Throws

    If parsing fails.

    Parameters

    • json: any

      A JSON representation of a TransactionV1.

    Returns TransactionV1

  • Converts the TransactionV1 object to a JSON representation.

    Returns

    A JSON version of the TransactionV1.

    Parameters

    Returns JsonTypes

Generated using TypeDoc