Skip to content

SubscribedTransaction

Defined in: src/types/subscription.ts:163

The common model used to expose a transaction that is returned from a subscription.

Substantively, based on the Indexer TransactionResult model format with some modifications to:

  • Add the parentTransactionId field so inner transactions have a reference to their parent
  • Override the type of inner-txns to be SubscribedTransaction[] so inner transactions (recursively) get these extra fields too
  • Add emitted ARC-28 events via arc28Events
  • Balance changes in algo or assets
  • Transaction

optional applicationTransaction: TransactionApplication

Defined in: node_modules/@algorandfoundation/algokit-utils/packages/indexer_client/src/models/transaction.d.ts:24

IndexerTransaction.applicationTransaction


optional arc28Events: EmittedArc28Event[]

Defined in: src/types/subscription.ts:173

Any ARC-28 events emitted from an app call.


optional assetConfigTransaction: TransactionAssetConfig

Defined in: node_modules/@algorandfoundation/algokit-utils/packages/indexer_client/src/models/transaction.d.ts:25

IndexerTransaction.assetConfigTransaction


optional assetFreezeTransaction: TransactionAssetFreeze

Defined in: node_modules/@algorandfoundation/algokit-utils/packages/indexer_client/src/models/transaction.d.ts:26

IndexerTransaction.assetFreezeTransaction


optional assetTransferTransaction: TransactionAssetTransfer

Defined in: node_modules/@algorandfoundation/algokit-utils/packages/indexer_client/src/models/transaction.d.ts:27

IndexerTransaction.assetTransferTransaction


optional authAddr: Address

Defined in: node_modules/@algorandfoundation/algokit-utils/packages/indexer_client/src/models/transaction.d.ts:33

[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.

IndexerTransaction.authAddr


optional balanceChanges: BalanceChange[]

Defined in: src/types/subscription.ts:177

The balance changes in the transaction.


optional closeRewards: bigint

Defined in: node_modules/@algorandfoundation/algokit-utils/packages/indexer_client/src/models/transaction.d.ts:37

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

IndexerTransaction.closeRewards


optional closingAmount: bigint

Defined in: node_modules/@algorandfoundation/algokit-utils/packages/indexer_client/src/models/transaction.d.ts:41

[ca] closing amount for transaction.

IndexerTransaction.closingAmount


optional confirmedRound: bigint

Defined in: node_modules/@algorandfoundation/algokit-utils/packages/indexer_client/src/models/transaction.d.ts:45

Round when the transaction was confirmed.

IndexerTransaction.confirmedRound


optional createdAppId: bigint

Defined in: node_modules/@algorandfoundation/algokit-utils/packages/indexer_client/src/models/transaction.d.ts:49

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

IndexerTransaction.createdAppId


optional createdAssetId: bigint

Defined in: node_modules/@algorandfoundation/algokit-utils/packages/indexer_client/src/models/transaction.d.ts:53

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

IndexerTransaction.createdAssetId


fee: bigint

Defined in: node_modules/@algorandfoundation/algokit-utils/packages/indexer_client/src/models/transaction.d.ts:57

[fee] Transaction fee.

IndexerTransaction.fee


optional filtersMatched: string[]

Defined in: src/types/subscription.ts:175

The names of any filters that matched the given transaction to result in it being ‘subscribed’.


firstValid: bigint

Defined in: node_modules/@algorandfoundation/algokit-utils/packages/indexer_client/src/models/transaction.d.ts:61

[fv] First valid round for this transaction.

IndexerTransaction.firstValid


optional genesisHash: Uint8Array<ArrayBufferLike>

Defined in: node_modules/@algorandfoundation/algokit-utils/packages/indexer_client/src/models/transaction.d.ts:65

[gh] Hash of genesis block.

IndexerTransaction.genesisHash


optional genesisId: string

Defined in: node_modules/@algorandfoundation/algokit-utils/packages/indexer_client/src/models/transaction.d.ts:69

[gen] genesis block ID.

IndexerTransaction.genesisId


optional globalStateDelta: StateDelta

Defined in: node_modules/@algorandfoundation/algokit-utils/packages/indexer_client/src/models/transaction.d.ts:135

IndexerTransaction.globalStateDelta


optional group: Uint8Array<ArrayBufferLike>

Defined in: node_modules/@algorandfoundation/algokit-utils/packages/indexer_client/src/models/transaction.d.ts:73

[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.

IndexerTransaction.group


optional heartbeatTransaction: TransactionHeartbeat

Defined in: node_modules/@algorandfoundation/algokit-utils/packages/indexer_client/src/models/transaction.d.ts:29

IndexerTransaction.heartbeatTransaction


id: string

Defined in: src/types/subscription.ts:165

Transaction ID

IndexerTransaction.id


optional innerTxns: SubscribedTransaction[]

Defined in: src/types/subscription.ts:171

Inner transactions produced by application execution.

IndexerTransaction.innerTxns


optional intraRoundOffset: number

Defined in: node_modules/@algorandfoundation/algokit-utils/packages/indexer_client/src/models/transaction.d.ts:81

Offset into the round where this transaction was confirmed.

IndexerTransaction.intraRoundOffset


optional keyregTransaction: TransactionKeyreg

Defined in: node_modules/@algorandfoundation/algokit-utils/packages/indexer_client/src/models/transaction.d.ts:82

IndexerTransaction.keyregTransaction


lastValid: bigint

Defined in: node_modules/@algorandfoundation/algokit-utils/packages/indexer_client/src/models/transaction.d.ts:86

[lv] Last valid round for this transaction.

IndexerTransaction.lastValid


optional lease: Uint8Array<ArrayBufferLike>

Defined in: node_modules/@algorandfoundation/algokit-utils/packages/indexer_client/src/models/transaction.d.ts:90

[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.

IndexerTransaction.lease


optional localStateDelta: AccountStateDelta[]

Defined in: node_modules/@algorandfoundation/algokit-utils/packages/indexer_client/src/models/transaction.d.ts:134

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

IndexerTransaction.localStateDelta


optional logs: Uint8Array<ArrayBufferLike>[]

Defined in: node_modules/@algorandfoundation/algokit-utils/packages/indexer_client/src/models/transaction.d.ts:139

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

IndexerTransaction.logs


optional note: Uint8Array<ArrayBufferLike>

Defined in: node_modules/@algorandfoundation/algokit-utils/packages/indexer_client/src/models/transaction.d.ts:94

[note] Free form data.

IndexerTransaction.note


optional parentIntraRoundOffset: number

Defined in: src/types/subscription.ts:167

The intra-round offset of the parent of this transaction (if it’s an inner transaction).


optional parentTransactionId: string

Defined in: src/types/subscription.ts:169

The transaction ID of the parent of this transaction (if it’s an inner transaction).


optional paymentTransaction: TransactionPayment

Defined in: node_modules/@algorandfoundation/algokit-utils/packages/indexer_client/src/models/transaction.d.ts:95

IndexerTransaction.paymentTransaction


optional receiverRewards: bigint

Defined in: node_modules/@algorandfoundation/algokit-utils/packages/indexer_client/src/models/transaction.d.ts:99

[rr] rewards applied to receiver account.

IndexerTransaction.receiverRewards


optional rekeyTo: Address

Defined in: node_modules/@algorandfoundation/algokit-utils/packages/indexer_client/src/models/transaction.d.ts:103

[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.

IndexerTransaction.rekeyTo


optional roundTime: number

Defined in: node_modules/@algorandfoundation/algokit-utils/packages/indexer_client/src/models/transaction.d.ts:107

Time when the block this transaction is in was confirmed.

IndexerTransaction.roundTime


sender: string

Defined in: node_modules/@algorandfoundation/algokit-utils/packages/indexer_client/src/models/transaction.d.ts:111

[snd] Sender’s address.

IndexerTransaction.sender


optional senderRewards: bigint

Defined in: node_modules/@algorandfoundation/algokit-utils/packages/indexer_client/src/models/transaction.d.ts:115

[rs] rewards applied to sender account.

IndexerTransaction.senderRewards


optional signature: TransactionSignature

Defined in: node_modules/@algorandfoundation/algokit-utils/packages/indexer_client/src/models/transaction.d.ts:116

IndexerTransaction.signature


optional stateProofTransaction: TransactionStateProof

Defined in: node_modules/@algorandfoundation/algokit-utils/packages/indexer_client/src/models/transaction.d.ts:28

IndexerTransaction.stateProofTransaction


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

Defined in: node_modules/@algorandfoundation/algokit-utils/packages/indexer_client/src/models/transaction.d.ts:130

[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

IndexerTransaction.txType