Class KeyregTxBuilder

Implements

  • IKeyregTxBuilder

Constructors

Methods

  • Add Fee

    Parameters

    • fee: number | bigint

      Paid by the sender to the FeeSink to prevent denial-of-service. The minimum fee on Algorand is currently 1000 microAlgos.

    Returns IKeyregTxBuilder

  • Add First Valid Round

    Parameters

    • fv: number | bigint

      The first round for when the transaction is valid. If the transaction is sent prior to this round it will be rejected by the network.

    Returns IKeyregTxBuilder

  • Add Group

    Parameters

    • grp: Uint8Array

      The group specifies that the transaction is part of a group and, if so, specifies the hash of the transaction group.

    Returns IKeyregTxBuilder

  • Add Last Valid Round

    Parameters

    • lv: number | bigint

      The ending round for which the transaction is valid. After this round, the transaction will be rejected by the network.

    Returns IKeyregTxBuilder

  • Add Lease

    Parameters

    • lx: Uint8Array

      A lease enforces mutual exclusion of transactions. If this field is nonzero, then once the transaction is confirmed, it acquires the lease identified by the (Sender, Lease) pair of the transaction until the LastValid round passes.

    Returns IKeyregTxBuilder

  • Add Non-Participating

    All new Algorand accounts are participating by default.

    Parameters

    • nonParticipation: boolean

      Mark an account nonparticipating by setting this value to true and this account will no longer earn rewards.

    Returns IKeyregTxBuilder

  • Add Note

    Parameters

    • note: string

      Any data up to 1000 bytes.

    • encoding: BufferEncoding = "utf8"

    Returns IKeyregTxBuilder

  • Add Rekey Address

    Parameters

    • rekey: string

      Specifies the authorized address. This address will be used to authorize all future transactions.

    Returns IKeyregTxBuilder

  • Add VRF PublicKey

    Parameters

    • selectionKey: string

      The VRF public key.

    • encoding: BufferEncoding = "base64"

      Buffer encoding

    Returns IKeyregTxBuilder

  • Add Sender

    Parameters

    • sender: string

      The address of the account that pays the fee and amount.

    Returns IKeyregTxBuilder

  • Add State Proof PublicKey

    Parameters

    • stateProofKey: string

      The 64 byte state proof public key commitment.

    • encoding: BufferEncoding = "base64"

      Buffer encoding

    Returns IKeyregTxBuilder

  • Add Vote First

    Parameters

    • voteFirst: number | bigint

      The first round that the participation key is valid.

    Returns IKeyregTxBuilder

  • Add Participation PublicKey

    Parameters

    • voteKey: string

      The root participation public key.

    • encoding: BufferEncoding = "base64"

      Buffer encoding

    Returns IKeyregTxBuilder

  • Add Dilution

    Parameters

    • voteKeyDilution: number | bigint

      This is the dilution for the 2-level participation key.

    Returns IKeyregTxBuilder

  • Add Vote Last

    Parameters

    • voteLast: number | bigint

      The last round that the participation key is valid.

    Returns IKeyregTxBuilder