Class KeyregTransaction

// Manual
const txn = new KeyregTransaction()

Hierarchy (view full)

Constructors

Properties

fee: bigint

Fee

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

fv: bigint

First Valid

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.

gen?: string

Genesis ID

The human-readable string that identifies the network for the transaction. The genesis ID is found in the genesis block. See the genesis ID for MainNet, TestNet, and BetaNet.

gh: Uint8Array

Genesis Hash

The hash of the genesis block of the network for which the transaction is valid. See the genesis hash for MainNet, TestNet, and BetaNet.

grp?: Uint8Array

Group

The group specifies that the transaction is part of a group and, if so, specifies the hash of the transaction group. Assign a group ID to a transaction through the workflow described in the Atomic Transfers Guide.

lv: bigint

Last Valid

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

lx?: Uint8Array

Lease

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. While this transaction possesses the lease, no other transaction specifying this lease can be confirmed. A lease is often used in the context of Algorand Smart Contracts to prevent replay attacks. Read more about Algorand Smart Contracts. Leases can also be used to safeguard against unintended duplicate spends. For example, if I send a transaction to the network and later realize my fee was too low, I could send another transaction with a higher fee, but the same lease value. This would ensure that only one of those transactions ends up getting confirmed during the validity period.

nonpart?: boolean

Nonparticipating

All new Algorand accounts are participating by default. This means that they earn rewards. Mark an account nonparticipating by setting this value to true and this account will no longer earn rewards. It is unlikely that you will ever need to do this and exists mainly for economic-related functions on the network.

note?: Uint8Array

Note

Any data up to 1000 bytes.

rekey?: Uint8Array

Rekey To

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

selkey?: Uint8Array

Selection PublicKey

The VRF public key.

snd: Uint8Array

Sender

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

sprfkey?: Uint8Array

State Proof PublicKey

The 64 byte state proof public key commitment.

type

Transaction Type

Specifies the type of transaction. This value is automatically generated using any of the developer tools.

votefst?: bigint

Vote First

The first round that the participation key is valid. Not to be confused with the FirstValid round of the keyreg transaction.

votekd?: bigint

Vote Key Dilution

This is the dilution for the 2-level participation key. It determines the interval (number of rounds) for generating new ephemeral keys.

votekey?: Uint8Array

Vote PublicKey

The root participation public key.

votelst?: bigint

Vote Last

The last round that the participation key is valid. Not to be confused with the LastValid round of the keyreg transaction.

Methods