Skip to content

创建文章

We are looking for publications that demonstrate building dApps or smart contracts!
See the full list of Gitcoin bounties that are eligible for rewards.

types indexer.TransactionResult

@algorandfoundation/algokit-utils / types/indexer / TransactionResult

Interface: TransactionResult

types/indexer.TransactionResult

Indexer result for a transaction, https://developer.algorand.org/docs/rest-apis/indexer/#transaction

Hierarchy

  • Record\<string, any>

TransactionResult

Table of contents

Properties

Properties

application-transaction

Optional application-transaction: ApplicationTransactionResult

If the transaction is an appl transaction this will be populated see tx-type

Defined in

src/types/indexer.ts:126


asset-config-transaction

Optional asset-config-transaction: AssetConfigTransactionResult

If the transaction is an acfg transaction this will be populated see tx-type

Defined in

src/types/indexer.ts:132


asset-freeze-transaction

Optional asset-freeze-transaction: AssetFreezeTransactionResult

If the transaction is an afrz transaction this will be populated see tx-type

Defined in

src/types/indexer.ts:138


asset-transfer-transaction

Optional asset-transfer-transaction: AssetTransferTransactionResult

If the transaction is an axfer transaction this will be populated see tx-type

Defined in

src/types/indexer.ts:140


auth-addr

Optional auth-addr: string

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

Defined in

src/types/indexer.ts:150


close-rewards

Optional close-rewards: number

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

Defined in

src/types/indexer.ts:185


closing-amount

Optional closing-amount: number

[ca] closing amount for transaction.

Defined in

src/types/indexer.ts:152


confirmed-round

Optional confirmed-round: number

Round when the transaction was confirmed.

Defined in

src/types/indexer.ts:102


created-application-index

Optional created-application-index: number

If the transaction is an appl transaction that resulted in an application creation then this specifies the application index (ID) of that application.

Defined in

src/types/indexer.ts:130


created-asset-index

Optional created-asset-index: number

If the transaction is an acfg transaction that resulted in an asset creation then this specifies the asset index (ID) of that asset.

Defined in

src/types/indexer.ts:136


fee

fee: number

[fee] Transaction fee.

Defined in

src/types/indexer.ts:94


first-valid

first-valid: number

[fv] First valid round for this transaction.

Defined in

src/types/indexer.ts:98


genesis-hash

Optional genesis-hash: string

[gh] Hash of genesis block.

Pattern: "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==\|[A-Za-z0-9+/]{3}=)?$"

Defined in

src/types/indexer.ts:157


genesis-id

Optional genesis-id: string

[gen] genesis block ID.

Defined in

src/types/indexer.ts:159


global-state-delta

Optional global-state-delta: Record\<string, EvalDelta>[]

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

Defined in

src/types/indexer.ts:179


group

Optional group: string

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

Pattern: "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==\|[A-Za-z0-9+/]{3}=)?$"

Defined in

src/types/indexer.ts:110


id

id: string

Transaction ID

Defined in

src/types/indexer.ts:81


inner-txns

Optional inner-txns: TransactionResult[]

Inner transactions produced by application execution.

Defined in

src/types/indexer.ts:161


intra-round-offset

Optional intra-round-offset: number

Offset into the round where this transaction was confirmed.

Defined in

src/types/indexer.ts:122


keyreg-transaction

Optional keyreg-transaction: KeyRegistrationTransactionResult

If the transaction is a keyreg transaction this will be populated see tx-type

Defined in

src/types/indexer.ts:142


last-valid

last-valid: number

[lv] Last valid round for this transaction.

Defined in

src/types/indexer.ts:100


lease

Optional lease: string

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

Pattern: "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==\|[A-Za-z0-9+/]{3}=)?$"

Defined in

src/types/indexer.ts:175


local-state-delta

Optional local-state-delta: Record\<string, EvalDelta>[]

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

Defined in

src/types/indexer.ts:177


logs

Optional logs: string[]

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

Defined in

src/types/indexer.ts:118


note

Optional note: string

[note] Free form data.

Pattern: "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==\|[A-Za-z0-9+/]{3}=)?$"

Defined in

src/types/indexer.ts:116


payment-transaction

Optional payment-transaction: PaymentTransactionResult

If the transaction is a pay transaction this will be populated see tx-type

Defined in

src/types/indexer.ts:144


receiver-rewards

Optional receiver-rewards: number

[rr] rewards applied to receiver account.

Defined in

src/types/indexer.ts:181


rekey-to

Optional rekey-to: string

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

Defined in

src/types/indexer.ts:165


round-time

Optional round-time: number

Time when the block this transaction is in was confirmed.

Defined in

src/types/indexer.ts:120


sender

sender: string

[snd] Sender's address.

Defined in

src/types/indexer.ts:96


sender-rewards

Optional sender-rewards: number

[rs] rewards applied to sender account.

Defined in

src/types/indexer.ts:183


signature

Optional signature: TransactionSignature

Signature of the transaction

Defined in

src/types/indexer.ts:124


state-proof-transaction

Optional state-proof-transaction: StateProofTransactionResult

If the transaction is a stpf transaction this will be populated see tx-type

Defined in

src/types/indexer.ts:146


tx-type

tx-type: TransactionType

[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

Defined in

src/types/indexer.ts:92