Skip to content

TransactionParams

TransactionParams = object

Defined in: packages/transact/src/transactions/transaction.ts:37

Represents the parameters for a complete Algorand transaction.

This structure contains the fields that are present in every transaction, regardless of transaction type, plus transaction-type-specific fields.

optional appCall: AppCallTransactionFields

Defined in: packages/transact/src/transactions/transaction.ts:134

App call specific fields


optional assetConfig: AssetConfigTransactionFields

Defined in: packages/transact/src/transactions/transaction.ts:129

Asset config specific fields


optional assetFreeze: AssetFreezeTransactionFields

Defined in: packages/transact/src/transactions/transaction.ts:144

Asset freeze specific fields


optional assetTransfer: AssetTransferTransactionFields

Defined in: packages/transact/src/transactions/transaction.ts:124

Asset transfer specific fields


optional fee: bigint

Defined in: packages/transact/src/transactions/transaction.ts:55

Optional transaction fee in microALGO.

When not set, the fee will be interpreted as 0 by the network.


firstValid: bigint

Defined in: packages/transact/src/transactions/transaction.ts:60

First round for when the transaction is valid.


optional genesisHash: Uint8Array

Defined in: packages/transact/src/transactions/transaction.ts:74

Hash of the genesis block of the network.

Used to identify which network the transaction is for.


optional genesisId: string

Defined in: packages/transact/src/transactions/transaction.ts:81

Genesis ID of the network.

A human-readable string used alongside genesis hash to identify the network.


optional group: Uint8Array

Defined in: packages/transact/src/transactions/transaction.ts:114

Optional group ID for atomic transaction grouping.

Transactions with the same group ID must execute together or not at all.


optional heartbeat: HeartbeatTransactionFields

Defined in: packages/transact/src/transactions/transaction.ts:149

Heartbeat specific fields


optional keyRegistration: KeyRegistrationTransactionFields

Defined in: packages/transact/src/transactions/transaction.ts:139

Key registration specific fields


lastValid: bigint

Defined in: packages/transact/src/transactions/transaction.ts:67

Last round for when the transaction is valid.

After this round, the transaction will be expired.


optional lease: Uint8Array

Defined in: packages/transact/src/transactions/transaction.ts:107

Optional lease value to enforce mutual transaction exclusion.

When a transaction with a non-empty lease field is confirmed, the lease is acquired. A lease X is acquired by the sender, generating the (sender, X) lease. The lease is kept active until the last_valid round of the transaction has elapsed. No other transaction sent by the same sender can be confirmed until the lease expires.


optional note: Uint8Array

Defined in: packages/transact/src/transactions/transaction.ts:88

Optional user-defined note field.

Can contain arbitrary data up to 1KB in size.


optional payment: PaymentTransactionFields

Defined in: packages/transact/src/transactions/transaction.ts:119

Payment specific fields


optional rekeyTo: Address

Defined in: packages/transact/src/transactions/transaction.ts:97

Optional authorized account for future transactions.

If set, only this account will be used for transaction authorization going forward. Reverting back control to the original address must be done by setting this field to the original address.


sender: Address

Defined in: packages/transact/src/transactions/transaction.ts:48

The account that authorized the transaction.

Fees are deducted from this account.


optional stateProof: StateProofTransactionFields

Defined in: packages/transact/src/transactions/transaction.ts:154

State proof specific fields


type: TransactionType

Defined in: packages/transact/src/transactions/transaction.ts:41

The type of transaction