Function makeKeyRegistrationTxnWithSuggestedParams

  • makeKeyRegistrationTxnWithSuggestedParams takes key registration arguments and returns a Transaction object for that key registration operation

    Parameters

    • from: string

      string representation of Algorand address of sender

    • note: Uint8Array

      uint8array of arbitrary data for sender to store

    • voteKey: string | Uint8Array

      voting key. for key deregistration, leave undefined

    • selectionKey: string | Uint8Array

      selection key. for key deregistration, leave undefined

    • voteFirst: number

      first round on which voteKey is valid

    • voteLast: number

      last round on which voteKey is valid

    • voteKeyDilution: number

      integer

    • 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

    • Optional nonParticipation: false

      configure whether the address wants to stop participating. If true, voteKey, selectionKey, voteFirst, voteLast, and voteKeyDilution must be undefined.

    • Optional stateProofKey: string | Uint8Array

      state proof key. for key deregistration, leave undefined

    Returns Transaction

  • Parameters

    • from: string
    • note: Uint8Array
    • voteKey: undefined
    • selectionKey: undefined
    • voteFirst: undefined
    • voteLast: undefined
    • voteKeyDilution: undefined
    • suggestedParams: SuggestedParams
    • Optional rekeyTo: string
    • Optional nonParticipation: true
    • Optional stateProofKey: undefined

    Returns Transaction

Generated using TypeDoc