Skip to content

Transaction

Transaction = object

Defined in: packages/indexer_client/src/models/transaction.ts:44

Contains all fields common to all transactions and serves as an envelope to all transactions type. Represents both regular and inner transactions.

Definition: data/transactions/signedtxn.go : SignedTxn data/transactions/transaction.go : Transaction

optional applicationTransaction: TransactionApplication

Defined in: packages/indexer_client/src/models/transaction.ts:45


optional assetConfigTransaction: TransactionAssetConfig

Defined in: packages/indexer_client/src/models/transaction.ts:46


optional assetFreezeTransaction: TransactionAssetFreeze

Defined in: packages/indexer_client/src/models/transaction.ts:47


optional assetTransferTransaction: TransactionAssetTransfer

Defined in: packages/indexer_client/src/models/transaction.ts:48


optional authAddr: Address

Defined in: packages/indexer_client/src/models/transaction.ts:55

[sgnr] this is included with signed transactions when the signing address does not equal the sender. The backend can use this to ensure that auth addr is equal to the accounts auth addr.


optional closeRewards: bigint

Defined in: packages/indexer_client/src/models/transaction.ts:60

[rc] rewards applied to close-remainder-to account.


optional closingAmount: bigint

Defined in: packages/indexer_client/src/models/transaction.ts:65

[ca] closing amount for transaction.


optional confirmedRound: bigint

Defined in: packages/indexer_client/src/models/transaction.ts:70

Round when the transaction was confirmed.


optional createdAppId: bigint

Defined in: packages/indexer_client/src/models/transaction.ts:75

Specifies an application index (ID) if an application was created with this transaction.


optional createdAssetId: bigint

Defined in: packages/indexer_client/src/models/transaction.ts:80

Specifies an asset index (ID) if an asset was created with this transaction.


fee: bigint

Defined in: packages/indexer_client/src/models/transaction.ts:85

[fee] Transaction fee.


firstValid: bigint

Defined in: packages/indexer_client/src/models/transaction.ts:90

[fv] First valid round for this transaction.


optional genesisHash: Uint8Array

Defined in: packages/indexer_client/src/models/transaction.ts:95

[gh] Hash of genesis block.


optional genesisId: string

Defined in: packages/indexer_client/src/models/transaction.ts:100

[gen] genesis block ID.


optional globalStateDelta: StateDelta

Defined in: packages/indexer_client/src/models/transaction.ts:179


optional group: Uint8Array

Defined in: packages/indexer_client/src/models/transaction.ts:105

[grp] Base64 encoded byte array of a sha512/256 digest. When present indicates that this transaction is part of a transaction group and the value is the sha512/256 hash of the transactions in that group.


optional heartbeatTransaction: TransactionHeartbeat

Defined in: packages/indexer_client/src/models/transaction.ts:50


optional id: string

Defined in: packages/indexer_client/src/models/transaction.ts:110

Transaction ID


optional innerTxns: Transaction[]

Defined in: packages/indexer_client/src/models/transaction.ts:189

Inner transactions produced by application execution.


optional intraRoundOffset: number

Defined in: packages/indexer_client/src/models/transaction.ts:115

Offset into the round where this transaction was confirmed.


optional keyregTransaction: TransactionKeyreg

Defined in: packages/indexer_client/src/models/transaction.ts:116


lastValid: bigint

Defined in: packages/indexer_client/src/models/transaction.ts:121

[lv] Last valid round for this transaction.


optional lease: Uint8Array

Defined in: packages/indexer_client/src/models/transaction.ts:126

[lx] Base64 encoded 32-byte array. 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.


optional localStateDelta: AccountStateDelta[]

Defined in: packages/indexer_client/src/models/transaction.ts:178

[ld] Local state key/value changes for the application being executed by this transaction.


optional logs: Uint8Array[]

Defined in: packages/indexer_client/src/models/transaction.ts:184

[lg] Logs for the application being executed by this transaction.


optional note: Uint8Array

Defined in: packages/indexer_client/src/models/transaction.ts:131

[note] Free form data.


optional paymentTransaction: TransactionPayment

Defined in: packages/indexer_client/src/models/transaction.ts:132


optional receiverRewards: bigint

Defined in: packages/indexer_client/src/models/transaction.ts:137

[rr] rewards applied to receiver account.


optional rekeyTo: Address

Defined in: packages/indexer_client/src/models/transaction.ts:142

[rekey] when included in a valid transaction, the accounts auth addr will be updated with this value and future signatures must be signed with the key represented by this address.


optional roundTime: number

Defined in: packages/indexer_client/src/models/transaction.ts:147

Time when the block this transaction is in was confirmed.


sender: string

Defined in: packages/indexer_client/src/models/transaction.ts:152

[snd] Sender’s address.


optional senderRewards: bigint

Defined in: packages/indexer_client/src/models/transaction.ts:157

[rs] rewards applied to sender account.


optional signature: TransactionSignature

Defined in: packages/indexer_client/src/models/transaction.ts:158


optional stateProofTransaction: TransactionStateProof

Defined in: packages/indexer_client/src/models/transaction.ts:49


txType: "pay" | "keyreg" | "acfg" | "axfer" | "afrz" | "appl" | "stpf" | "hb"

Defined in: packages/indexer_client/src/models/transaction.ts:173

[type] Indicates what type of transaction this is. Different types have different fields.

Valid types, and where their fields are stored:

  • [pay] payment-transaction
  • [keyreg] keyreg-transaction
  • [acfg] asset-config-transaction
  • [axfer] asset-transfer-transaction
  • [afrz] asset-freeze-transaction
  • [appl] application-transaction
  • [stpf] state-proof-transaction
  • [hb] heartbeat-transaction