Class Transaction


  • public class Transaction
    extends PathResponse
    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
    • Field Detail

      • applicationTransaction

        public TransactionApplication applicationTransaction
        Fields for application transactions. Definition: data/transactions/application.go : ApplicationCallTxnFields
      • assetConfigTransaction

        public TransactionAssetConfig assetConfigTransaction
        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
      • assetFreezeTransaction

        public TransactionAssetFreeze assetFreezeTransaction
        Fields for an asset freeze transaction. Definition: data/transactions/asset.go : AssetFreezeTxnFields
      • assetTransferTransaction

        public TransactionAssetTransfer assetTransferTransaction
        Fields for an asset transfer transaction. Definition: data/transactions/asset.go : AssetTransferTxnFields
      • authAddr

        public Address authAddr
      • closeRewards

        public Long closeRewards
        (rc) rewards applied to close-remainder-to account.
      • closingAmount

        public Long closingAmount
        (ca) closing amount for transaction.
      • confirmedRound

        public Long confirmedRound
        Round when the transaction was confirmed.
      • createdApplicationIndex

        public Long createdApplicationIndex
        Specifies an application index (ID) if an application was created with this transaction.
      • createdAssetIndex

        public Long createdAssetIndex
        Specifies an asset index (ID) if an asset was created with this transaction.
      • fee

        public Long fee
        (fee) Transaction fee.
      • firstValid

        public Long firstValid
        (fv) First valid round for this transaction.
      • genesisHash

        public byte[] genesisHash
      • genesisId

        public String genesisId
        (gen) genesis block ID.
      • globalStateDelta

        public List<EvalDeltaKeyValue> globalStateDelta
        (gd) Global state key/value changes for the application being executed by this transaction.
      • group

        public byte[] group
      • id

        public String id
        Transaction ID
      • innerTxns

        public List<Transaction> innerTxns
        Inner transactions produced by application execution.
      • intraRoundOffset

        public Long intraRoundOffset
        Offset into the round where this transaction was confirmed.
      • keyregTransaction

        public TransactionKeyreg keyregTransaction
        Fields for a keyreg transaction. Definition: data/transactions/keyreg.go : KeyregTxnFields
      • lastValid

        public Long lastValid
        (lv) Last valid round for this transaction.
      • lease

        public byte[] lease
      • localStateDelta

        public List<AccountStateDelta> localStateDelta
        (ld) Local state key/value changes for the application being executed by this transaction.
      • logs

        public List<byte[]> logs
        (lg) Logs for the application being executed by this transaction.
      • note

        public byte[] note
      • paymentTransaction

        public TransactionPayment paymentTransaction
        Fields for a payment transaction. Definition: data/transactions/payment.go : PaymentTxnFields
      • receiverRewards

        public Long receiverRewards
        (rr) rewards applied to receiver account.
      • roundTime

        public Long roundTime
        Time when the block this transaction is in was confirmed.
      • sender

        public String sender
        (snd) Sender's address.
      • senderRewards

        public Long senderRewards
        (rs) rewards applied to sender account.
      • signature

        public TransactionSignature signature
        Validation signature associated with some data. Only one of the signatures should be provided.
      • stateProofTransaction

        public TransactionStateProof stateProofTransaction
        Fields for a state proof transaction. Definition: data/transactions/stateproof.go : StateProofTxnFields
      • txType

        public Enums.TxType txType
        (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
    • Constructor Detail

      • Transaction

        public Transaction()
    • Method Detail

      • authAddr

        public void authAddr​(String authAddr)
                      throws NoSuchAlgorithmException
        (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.
        Throws:
        NoSuchAlgorithmException
      • genesisHash

        public void genesisHash​(String base64Encoded)
        (gh) Hash of genesis block.
      • genesisHash

        public String genesisHash()
      • group

        public void group​(String base64Encoded)
        (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.
      • group

        public String group()
      • lease

        public void lease​(String base64Encoded)
        (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.
      • lease

        public String lease()
      • logs

        public void logs​(List<String> base64Encoded)
      • note

        public void note​(String base64Encoded)
        (note) Free form data.
      • rekeyTo

        public void rekeyTo​(String rekeyTo)
                     throws NoSuchAlgorithmException
        (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.
        Throws:
        NoSuchAlgorithmException