Options
All
  • Public
  • Public/Protected
  • All
Menu

A convenience class to make managing Algorand transactions groups easier.

Hierarchy

  • TransactionGroup

Index

Constructors

Properties

Accessors

Methods

Constructors

  • Creates the TransactionGroup from an array of transactions by assigning a group id to each transaction.

    throws

    PactSdkError if the list is empty (length 0).

    throws

    PactSdkError if the group id was not assigned to the transactions due to a failure in the Algorand SDK.

    Parameters

    • transactions: Transaction[]

      A list of transactions to put in a group.

    Returns TransactionGroup

Properties

groupIdBuffer: Buffer
transactions: Transaction[]

A list of transactions in a group.

Accessors

  • get groupId(): string

Methods

  • signTxn(secretKey: Uint8Array): Uint8Array[]
  • Signs all the transactions in the group with the secret key.

    Parameters

    • secretKey: Uint8Array

      Sign the transactions with this secret key.

    Returns Uint8Array[]

    An array of encoded signed transactions as per the Transaction.signTxn from the Algorand sdk.

Generated using TypeDoc