Class AssetFreezeTransaction

Includes all fields in TransactionHeader and "type" is "axfer".

// Manual
const txn = new AssetFreezeTransaction()

Hierarchy (view full)

Constructors

Properties

Methods

Constructors

Properties

afrz: boolean

True to freeze the asset.

fadd: Uint8Array

The address of the account whose asset is being frozen or unfrozen.

faid: bigint

The asset ID being frozen or unfrozen.

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.

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.

snd: Uint8Array

Sender

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

type

Transaction Type

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

Methods