Class MyAlgoWalletSession

Hierarchy

  • MyAlgoWalletSession

Constructors

Properties

accounts: Accounts[] = []
addresses: string[] = []
connector: MyAlgoConnect

Methods

  • Creates an algosdk.Transaction object based on execParams and suggestedParams and signs with myAlgoWallet

    Returns

    array of algosdk.SignedTransaction objects

    Parameters

    • execParams: ExecParams[]

      execParams containing all txn info

    • txParams: SuggestedParams

      suggestedParams object

    Returns Promise<SignedTransaction[]>

  • Creates an algosdk.Transaction object based on execParams and suggestedParams

    Returns

    array of algosdk.Transaction objects

    Parameters

    • execParams: ExecParams[]

      execParams containing all txn info

    • txParams: SuggestedParams

      suggestedParams object

    Returns Transaction[]

  • Send signed transaction to network and wait for confirmation

    Returns

    TxnReceipt which includes confirmed txn response along with txID

    Parameters

    • rawTxns: Uint8Array | Uint8Array[]

      Signed Transaction(s)

    • waitRounds: number = WAIT_ROUNDS

      number of rounds to wait for transaction to be confirmed - default is 10

    Returns Promise<TxnReceipt>

  • Sends signedTransaction and waits for the response

    Returns

    TxnReceipt which includes confirmed txn response along with txID

    Parameters

    • transactions: SignedTransaction[]

      array of signedTransaction objects.

    • Optional rounds: number

      number of rounds to wait for response

    Returns Promise<TxnReceipt>

  • Signs a Transaction object with with myAlgoWallet

    Returns

    SignedTransaction

    Parameters

    • transaction: Transaction

      transaction object.

    Returns Promise<SignedTransaction>

  • Function used to wait for a tx confirmation

    Returns

    TxnReceipt which includes confirmed txn response along with txID

    Parameters

    • txId: string

      txn ID for which confirmation is required

    • waitRounds: number = WAIT_ROUNDS

      number of rounds to wait for transaction to be confirmed - default is 10

    Returns Promise<TxnReceipt>

Generated using TypeDoc