Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TransactionGroup

Hierarchy

  • TransactionGroup

Index

Constructors

  • This is the constructor for the TransactionGroup class. You pass in a list of transactions and get back a TransactionGroup object

    Parameters

    • transactions: Transaction[]

      list of transactions

    Returns TransactionGroup

Properties

signedTransactions: Uint8Array[]
transactions: Transaction[]

Methods

  • signWithPrivateKey(address: string, privateKey: Uint8Array): void
  • Signs the transactions with specified private key and saves to class state

    Parameters

    • address: string

      account address of the user

    • privateKey: Uint8Array

      private key of user

    Returns void

  • signWithPrivateKeys(privateKeys: Uint8Array[]): void
  • Signs the transactions with specified private keys and saves to class state

    Parameters

    • privateKeys: Uint8Array[]

      private keys

    Returns void

  • submit(algod: default, wait?: boolean): Promise<{}>
  • Submits the signed transactions to the network using the algod client

    Parameters

    • algod: default

      algod client

    • wait: boolean = false

      wait for txn to complete; defaults to false

    Returns Promise<{}>

Generated using TypeDoc