Function makePaymentTxnWithSuggestedParams

  • makePaymentTxnWithSuggestedParams takes payment arguments and returns a Transaction object

    Parameters

    • from: string

      string representation of Algorand address of sender

    • to: string

      string representation of Algorand address of recipient

    • amount: number | bigint

      integer amount to send, in microAlgos

    • closeRemainderTo: string

      optionally close out remaining account balance to this account, represented as string rep of Algorand address

    • note: Uint8Array

      uint8array of arbitrary data for sender to store

    • suggestedParams: SuggestedParams

      a dict holding common-to-all-txns args: fee - integer fee per byte, in microAlgos. for a flat fee, set flatFee to true flatFee - bool optionally set this to true to specify fee as microalgos-per-txn If true, txn fee may fall below the ALGORAND_MIN_TX_FEE firstRound - integer first protocol round on which this txn is valid lastRound - integer last protocol round on which this txn is valid genesisHash - string specifies hash genesis block of network in use genesisID - string specifies genesis ID of network in use

    • Optional rekeyTo: string

      rekeyTo address, optional

    Returns Transaction

Generated using TypeDoc