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?
optionalapplication-transaction:TransactionApplication
asset-config-transaction?
optionalasset-config-transaction:TransactionAssetConfig
asset-freeze-transaction?
optionalasset-freeze-transaction:TransactionAssetFreeze
asset-transfer-transaction?
optionalasset-transfer-transaction:TransactionAssetTransfer
auth-addr?
optionalauth-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?
optionalclose-rewards:number
[rc] rewards applied to close-remainder-to account.
closing-amount?
optionalclosing-amount:number
[ca] closing amount for transaction.
confirmed-round?
optionalconfirmed-round:number
Round when the transaction was confirmed.
created-application-index?
optionalcreated-application-index:number
Specifies an application index (ID) if an application was created with this transaction.
created-asset-index?
optionalcreated-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?
optionalgenesis-hash:string
[gh] Hash of genesis block.
genesis-id?
optionalgenesis-id:string
[gen] genesis block ID.
global-state-delta?
optionalglobal-state-delta:StateDelta
group?
optionalgroup: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?
optionalid:string
Transaction ID
inner-txns?
optionalinner-txns:Transaction[]
Inner transactions produced by application execution.
intra-round-offset?
optionalintra-round-offset:number
Offset into the round where this transaction was confirmed.
keyreg-transaction?
optionalkeyreg-transaction:TransactionKeyreg
last-valid
last-valid:
number
[lv] Last valid round for this transaction.
lease?
optionallease: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?
optionallocal-state-delta:AccountStateDelta[]
[ld] Local state key/value changes for the application being executed by this transaction.
logs?
optionallogs:string[]
[lg] Logs for the application being executed by this transaction.
note?
optionalnote:string
[note] Free form data.
payment-transaction?
optionalpayment-transaction:TransactionPayment
receiver-rewards?
optionalreceiver-rewards:number
[rr] rewards applied to receiver account.
rekey-to?
optionalrekey-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?
optionalround-time:number
Time when the block this transaction is in was confirmed.
sender
sender:
string
[snd] Sender’s address.
sender-rewards?
optionalsender-rewards:number
[rs] rewards applied to sender account.
signature?
optionalsignature:TransactionSignature
state-proof-transaction?
optionalstate-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