Function makeKeyRegistrationTxn

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

    Deprecated

    in version 2.0 this will change to use the "WithSuggestedParams" signature.

    Parameters

    • from: string

      string representation of Algorand address of sender

    • fee: number

      integer fee per byte, in microAlgos. for a flat fee, overwrite the fee property on the returned object If the final calculated fee is lower than the protocol minimum fee, the fee will be increased to match the minimum.

    • firstRound: number

      integer first protocol round on which this txn is valid

    • lastRound: number

      integer last protocol round on which this txn is valid

    • note: Uint8Array

      uint8array of arbitrary data for sender to store

    • genesisHash: string

      string specifies hash genesis block of network in use

    • genesisID: string

      string specifies genesis ID of network in use

    • 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

    • 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
    • fee: number
    • firstRound: number
    • lastRound: number
    • note: Uint8Array
    • genesisHash: string
    • genesisID: string
    • voteKey: undefined
    • selectionKey: undefined
    • voteFirst: undefined
    • voteLast: undefined
    • voteKeyDilution: undefined
    • Optional rekeyTo: string
    • Optional nonParticipation: true
    • Optional stateProofKey: undefined

    Returns Transaction

Generated using TypeDoc