Skip to content

Transaction

Transaction: object

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

Type declaration

application-transaction?

optional application-transaction: TransactionApplication

asset-config-transaction?

optional asset-config-transaction: TransactionAssetConfig

asset-freeze-transaction?

optional asset-freeze-transaction: TransactionAssetFreeze

asset-transfer-transaction?

optional asset-transfer-transaction: TransactionAssetTransfer

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.

close-rewards?

optional close-rewards: number

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

closing-amount?

optional closing-amount: number

[ca] closing amount for transaction.

confirmed-round?

optional confirmed-round: number

Round when the transaction was confirmed.

created-application-index?

optional created-application-index: number

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

created-asset-index?

optional created-asset-index: number

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

fee

fee: number

[fee] Transaction fee.

first-valid

first-valid: number

[fv] First valid round for this transaction.

genesis-hash?

optional genesis-hash: string

[gh] Hash of genesis block.

genesis-id?

optional genesis-id: string

[gen] genesis block ID.

global-state-delta?

optional global-state-delta: StateDelta

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.

id?

optional id: string

Transaction ID

inner-txns?

optional inner-txns: Transaction[]

Inner transactions produced by application execution.

intra-round-offset?

optional intra-round-offset: number

Offset into the round where this transaction was confirmed.

keyreg-transaction?

optional keyreg-transaction: TransactionKeyreg

last-valid

last-valid: number

[lv] Last valid round for this transaction.

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.

local-state-delta?

optional local-state-delta: AccountStateDelta[]

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

logs?

optional logs: string[]

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

note?

optional note: string

[note] Free form data.

payment-transaction?

optional payment-transaction: TransactionPayment

receiver-rewards?

optional receiver-rewards: number

[rr] rewards applied to receiver account.

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.

round-time?

optional round-time: number

Time when the block this transaction is in was confirmed.

sender

sender: string

[snd] Sender’s address.

sender-rewards?

optional sender-rewards: number

[rs] rewards applied to sender account.

signature?

optional signature: TransactionSignature

state-proof-transaction?

optional state-proof-transaction: TransactionStateProof

tx-type

tx-type: "pay" | "keyreg" | "acfg" | "axfer" | "afrz" | "appl" | "stpf"

[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

types.gen.ts:889