Class WebMode

Hierarchy

  • WebMode

Constructors

Properties

algoSigner: AlgoSigner
chainName: string

Methods

  • Returns suggested transaction parameters using algosigner

    Parameters

    • userParams: TxParams

      Transaction parameters

    Returns Promise<SuggestedParams>

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

    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

    • signedTxn: string

      Signed Transaction blob encoded in base64

    • waitRounds: number = WAIT_ROUNDS

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

    Returns Promise<TxnReceipt>

  • Send group transaction to network

    Parameters

    • signedTxs: any

      signed transaction group

    Returns Promise<JsonPayload>

  • 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>

  • Appends signature to a multisig transaction using algosigner

    Parameters

    • txn: EncodedSignedTransaction

      Multisignature Encoded Transaction

    • Optional signers: string[]

      a subset of addresses to sign the transaction return an object containing a blob key encoded in base64

    Returns Promise<JsonPayload>

  • Sign transaction using algosigner

    Parameters

    • txns: WalletTransaction[]

      Array of transactions in base64

    Returns Promise<JsonPayload>

  • Signs a Transaction object

    Returns

    SignedTransaction

    Parameters

    • transaction: Transaction

      transaction object.

    Returns Promise<SignedTransaction>

  • wait for confirmation for transaction using transaction id

    Returns

    TxnReceipt which includes confirmed txn response along with txID

    Parameters

    • txId: string

      Transaction id

    • waitRounds: number = WAIT_ROUNDS

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

    Returns Promise<TxnReceipt>

Generated using TypeDoc