algokit-subscriber-ts

@algorandfoundation/algokit-subscriber / types/subscription / SubscribedTransaction

Class: SubscribedTransaction

types/subscription.SubscribedTransaction

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:

Hierarchy

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

new SubscribedTransaction(«destructured»): SubscribedTransaction

Parameters

Name Type
«destructured» Omit<SubscribedTransaction, "getEncodingSchema" | "toEncodingData">

Returns

SubscribedTransaction

Overrides

algosdk.indexerModels.Transaction.constructor

Defined in

src/types/subscription.ts:178

Properties

applicationTransaction

Optional applicationTransaction: TransactionApplication

Fields for application transactions. Definition: data/transactions/application.go : ApplicationCallTxnFields

Inherited from

algosdk.indexerModels.Transaction.applicationTransaction

Defined in

node_modules/algosdk/dist/types/client/v2/indexer/models/types.d.ts:2176


arc28Events

Optional arc28Events: EmittedArc28Event[]

Any ARC-28 events emitted from an app call.

Defined in

src/types/subscription.ts:172


assetConfigTransaction

Optional assetConfigTransaction: TransactionAssetConfig

Fields for asset allocation, re-configuration, and destruction. A zero value for asset-id indicates asset creation. A zero value for the params indicates asset destruction. Definition: data/transactions/asset.go : AssetConfigTxnFields

Inherited from

algosdk.indexerModels.Transaction.assetConfigTransaction

Defined in

node_modules/algosdk/dist/types/client/v2/indexer/models/types.d.ts:2184


assetFreezeTransaction

Optional assetFreezeTransaction: TransactionAssetFreeze

Fields for an asset freeze transaction. Definition: data/transactions/asset.go : AssetFreezeTxnFields

Inherited from

algosdk.indexerModels.Transaction.assetFreezeTransaction

Defined in

node_modules/algosdk/dist/types/client/v2/indexer/models/types.d.ts:2190


assetTransferTransaction

Optional assetTransferTransaction: TransactionAssetTransfer

Fields for an asset transfer transaction. Definition: data/transactions/asset.go : AssetTransferTxnFields

Inherited from

algosdk.indexerModels.Transaction.assetTransferTransaction

Defined in

node_modules/algosdk/dist/types/client/v2/indexer/models/types.d.ts:2196


authAddr

Optional authAddr: Address

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

Inherited from

algosdk.indexerModels.Transaction.authAddr

Defined in

node_modules/algosdk/dist/types/client/v2/indexer/models/types.d.ts:2202


balanceChanges

Optional balanceChanges: BalanceChange[]

The balance changes in the transaction.

Defined in

src/types/subscription.ts:176


closeRewards

Optional closeRewards: bigint

(rc) rewards applied to close-remainder-to account.

Inherited from

algosdk.indexerModels.Transaction.closeRewards

Defined in

node_modules/algosdk/dist/types/client/v2/indexer/models/types.d.ts:2206


closingAmount

Optional closingAmount: bigint

(ca) closing amount for transaction.

Inherited from

algosdk.indexerModels.Transaction.closingAmount

Defined in

node_modules/algosdk/dist/types/client/v2/indexer/models/types.d.ts:2210


confirmedRound

Optional confirmedRound: bigint

Round when the transaction was confirmed.

Inherited from

algosdk.indexerModels.Transaction.confirmedRound

Defined in

node_modules/algosdk/dist/types/client/v2/indexer/models/types.d.ts:2214


createdApplicationIndex

Optional createdApplicationIndex: bigint

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

Inherited from

algosdk.indexerModels.Transaction.createdApplicationIndex

Defined in

node_modules/algosdk/dist/types/client/v2/indexer/models/types.d.ts:2219


createdAssetIndex

Optional createdAssetIndex: bigint

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

Inherited from

algosdk.indexerModels.Transaction.createdAssetIndex

Defined in

node_modules/algosdk/dist/types/client/v2/indexer/models/types.d.ts:2223


fee

fee: bigint

(fee) Transaction fee.

Inherited from

algosdk.indexerModels.Transaction.fee

Defined in

node_modules/algosdk/dist/types/client/v2/indexer/models/types.d.ts:2158


filtersMatched

Optional filtersMatched: string[]

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

Defined in

src/types/subscription.ts:174


firstValid

firstValid: bigint

(fv) First valid round for this transaction.

Inherited from

algosdk.indexerModels.Transaction.firstValid

Defined in

node_modules/algosdk/dist/types/client/v2/indexer/models/types.d.ts:2162


genesisHash

Optional genesisHash: Uint8Array

(gh) Hash of genesis block.

Inherited from

algosdk.indexerModels.Transaction.genesisHash

Defined in

node_modules/algosdk/dist/types/client/v2/indexer/models/types.d.ts:2227


genesisId

Optional genesisId: string

(gen) genesis block ID.

Inherited from

algosdk.indexerModels.Transaction.genesisId

Defined in

node_modules/algosdk/dist/types/client/v2/indexer/models/types.d.ts:2231


globalStateDelta

Optional globalStateDelta: EvalDeltaKeyValue[]

(gd) Global state key/value changes for the application being executed by this transaction.

Inherited from

algosdk.indexerModels.Transaction.globalStateDelta

Defined in

node_modules/algosdk/dist/types/client/v2/indexer/models/types.d.ts:2236


group

Optional group: Uint8Array

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

Inherited from

algosdk.indexerModels.Transaction.group

Defined in

node_modules/algosdk/dist/types/client/v2/indexer/models/types.d.ts:2242


heartbeatTransaction

Optional heartbeatTransaction: TransactionHeartbeat

Fields for a heartbeat transaction. Definition: data/transactions/heartbeat.go : HeartbeatTxnFields

Inherited from

algosdk.indexerModels.Transaction.heartbeatTransaction

Defined in

node_modules/algosdk/dist/types/client/v2/indexer/models/types.d.ts:2248


id

id: string

Overrides

algosdk.indexerModels.Transaction.id

Defined in

src/types/subscription.ts:164


innerTxns

Optional innerTxns: SubscribedTransaction[]

Inner transactions produced by application execution.

Overrides

algosdk.indexerModels.Transaction.innerTxns

Defined in

src/types/subscription.ts:170


intraRoundOffset

Optional intraRoundOffset: number

Offset into the round where this transaction was confirmed.

Inherited from

algosdk.indexerModels.Transaction.intraRoundOffset

Defined in

node_modules/algosdk/dist/types/client/v2/indexer/models/types.d.ts:2260


keyregTransaction

Optional keyregTransaction: TransactionKeyreg

Fields for a keyreg transaction. Definition: data/transactions/keyreg.go : KeyregTxnFields

Inherited from

algosdk.indexerModels.Transaction.keyregTransaction

Defined in

node_modules/algosdk/dist/types/client/v2/indexer/models/types.d.ts:2266


lastValid

lastValid: bigint

(lv) Last valid round for this transaction.

Inherited from

algosdk.indexerModels.Transaction.lastValid

Defined in

node_modules/algosdk/dist/types/client/v2/indexer/models/types.d.ts:2166


lease

Optional lease: Uint8Array

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

Inherited from

algosdk.indexerModels.Transaction.lease

Defined in

node_modules/algosdk/dist/types/client/v2/indexer/models/types.d.ts:2274


localStateDelta

Optional localStateDelta: AccountStateDelta[]

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

Inherited from

algosdk.indexerModels.Transaction.localStateDelta

Defined in

node_modules/algosdk/dist/types/client/v2/indexer/models/types.d.ts:2279


logs

Optional logs: Uint8Array[]

(lg) Logs for the application being executed by this transaction.

Inherited from

algosdk.indexerModels.Transaction.logs

Defined in

node_modules/algosdk/dist/types/client/v2/indexer/models/types.d.ts:2283


note

Optional note: Uint8Array

(note) Free form data.

Inherited from

algosdk.indexerModels.Transaction.note

Defined in

node_modules/algosdk/dist/types/client/v2/indexer/models/types.d.ts:2287


parentIntraRoundOffset

Optional parentIntraRoundOffset: number

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

Defined in

src/types/subscription.ts:166


parentTransactionId

Optional parentTransactionId: string

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

Defined in

src/types/subscription.ts:168


paymentTransaction

Optional paymentTransaction: TransactionPayment

Fields for a payment transaction. Definition: data/transactions/payment.go : PaymentTxnFields

Inherited from

algosdk.indexerModels.Transaction.paymentTransaction

Defined in

node_modules/algosdk/dist/types/client/v2/indexer/models/types.d.ts:2293


receiverRewards

Optional receiverRewards: bigint

(rr) rewards applied to receiver account.

Inherited from

algosdk.indexerModels.Transaction.receiverRewards

Defined in

node_modules/algosdk/dist/types/client/v2/indexer/models/types.d.ts:2297


rekeyTo

Optional rekeyTo: Address

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

Inherited from

algosdk.indexerModels.Transaction.rekeyTo

Defined in

node_modules/algosdk/dist/types/client/v2/indexer/models/types.d.ts:2303


roundTime

Optional roundTime: number

Time when the block this transaction is in was confirmed.

Inherited from

algosdk.indexerModels.Transaction.roundTime

Defined in

node_modules/algosdk/dist/types/client/v2/indexer/models/types.d.ts:2307


sender

sender: string

(snd) Sender’s address.

Inherited from

algosdk.indexerModels.Transaction.sender

Defined in

node_modules/algosdk/dist/types/client/v2/indexer/models/types.d.ts:2170


senderRewards

Optional senderRewards: bigint

(rs) rewards applied to sender account.

Inherited from

algosdk.indexerModels.Transaction.senderRewards

Defined in

node_modules/algosdk/dist/types/client/v2/indexer/models/types.d.ts:2311


signature

Optional signature: TransactionSignature

Validation signature associated with some data. Only one of the signatures should be provided.

Inherited from

algosdk.indexerModels.Transaction.signature

Defined in

node_modules/algosdk/dist/types/client/v2/indexer/models/types.d.ts:2316


stateProofTransaction

Optional stateProofTransaction: TransactionStateProof

Fields for a state proof transaction. Definition: data/transactions/stateproof.go : StateProofTxnFields

Inherited from

algosdk.indexerModels.Transaction.stateProofTransaction

Defined in

node_modules/algosdk/dist/types/client/v2/indexer/models/types.d.ts:2322


txType

Optional txType: string

(type) Indicates what type of transaction this is. Different types have different fields. Valid types, and where their fields are stored:

Inherited from

algosdk.indexerModels.Transaction.txType

Defined in

node_modules/algosdk/dist/types/client/v2/indexer/models/types.d.ts:2336

Accessors

encodingSchema

get encodingSchema(): Schema

Returns

Schema

Inherited from

algosdk.indexerModels.Transaction.encodingSchema

Defined in

node_modules/algosdk/dist/types/client/v2/indexer/models/types.d.ts:2154

Methods

getEncodingSchema

getEncodingSchema(): Schema

Returns

Schema

Inherited from

algosdk.indexerModels.Transaction.getEncodingSchema

Defined in

node_modules/algosdk/dist/types/client/v2/indexer/models/types.d.ts:2454


toEncodingData

toEncodingData(): Map<string, unknown>

Returns

Map<string, unknown>

Inherited from

algosdk.indexerModels.Transaction.toEncodingData

Defined in

node_modules/algosdk/dist/types/client/v2/indexer/models/types.d.ts:2455


fromEncodingData

fromEncodingData(data): Transaction

Parameters

Name Type
data unknown

Returns

Transaction

Inherited from

algosdk.indexerModels.Transaction.fromEncodingData

Defined in

node_modules/algosdk/dist/types/client/v2/indexer/models/types.d.ts:2456