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.
Properties
Section titled “Properties”appCall?
Section titled “appCall?”
optionalappCall:AppCallTransactionFields
Defined in: packages/transact/src/transactions/transaction.ts:134
App call specific fields
assetConfig?
Section titled “assetConfig?”
optionalassetConfig:AssetConfigTransactionFields
Defined in: packages/transact/src/transactions/transaction.ts:129
Asset config specific fields
assetFreeze?
Section titled “assetFreeze?”
optionalassetFreeze:AssetFreezeTransactionFields
Defined in: packages/transact/src/transactions/transaction.ts:144
Asset freeze specific fields
assetTransfer?
Section titled “assetTransfer?”
optionalassetTransfer:AssetTransferTransactionFields
Defined in: packages/transact/src/transactions/transaction.ts:124
Asset transfer specific fields
optionalfee: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
Section titled “firstValid”firstValid:
bigint
Defined in: packages/transact/src/transactions/transaction.ts:60
First round for when the transaction is valid.
genesisHash?
Section titled “genesisHash?”
optionalgenesisHash: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.
genesisId?
Section titled “genesisId?”
optionalgenesisId: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.
group?
Section titled “group?”
optionalgroup: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.
heartbeat?
Section titled “heartbeat?”
optionalheartbeat:HeartbeatTransactionFields
Defined in: packages/transact/src/transactions/transaction.ts:149
Heartbeat specific fields
keyRegistration?
Section titled “keyRegistration?”
optionalkeyRegistration:KeyRegistrationTransactionFields
Defined in: packages/transact/src/transactions/transaction.ts:139
Key registration specific fields
lastValid
Section titled “lastValid”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.
lease?
Section titled “lease?”
optionallease: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.
optionalnote:Uint8Array
Defined in: packages/transact/src/transactions/transaction.ts:88
Optional user-defined note field.
Can contain arbitrary data up to 1KB in size.
payment?
Section titled “payment?”
optionalpayment:PaymentTransactionFields
Defined in: packages/transact/src/transactions/transaction.ts:119
Payment specific fields
rekeyTo?
Section titled “rekeyTo?”
optionalrekeyTo: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
Section titled “sender”sender:
Address
Defined in: packages/transact/src/transactions/transaction.ts:48
The account that authorized the transaction.
Fees are deducted from this account.
stateProof?
Section titled “stateProof?”
optionalstateProof: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