Class Transaction
- java.lang.Object
-
- com.algorand.algosdk.v2.client.common.PathResponse
-
- com.algorand.algosdk.v2.client.model.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 Summary
Fields Modifier and Type Field Description TransactionApplication
applicationTransaction
Fields for application transactions.TransactionAssetConfig
assetConfigTransaction
Fields for asset allocation, re-configuration, and destruction.TransactionAssetFreeze
assetFreezeTransaction
Fields for an asset freeze transaction.TransactionAssetTransfer
assetTransferTransaction
Fields for an asset transfer transaction.Address
authAddr
Long
closeRewards
(rc) rewards applied to close-remainder-to account.Long
closingAmount
(ca) closing amount for transaction.Long
confirmedRound
Round when the transaction was confirmed.Long
createdApplicationIndex
Specifies an application index (ID) if an application was created with this transaction.Long
createdAssetIndex
Specifies an asset index (ID) if an asset was created with this transaction.Long
fee
(fee) Transaction fee.Long
firstValid
(fv) First valid round for this transaction.byte[]
genesisHash
String
genesisId
(gen) genesis block ID.List<EvalDeltaKeyValue>
globalStateDelta
(gd) Global state key/value changes for the application being executed by this transaction.byte[]
group
String
id
Transaction IDList<Transaction>
innerTxns
Inner transactions produced by application execution.Long
intraRoundOffset
Offset into the round where this transaction was confirmed.TransactionKeyreg
keyregTransaction
Fields for a keyreg transaction.Long
lastValid
(lv) Last valid round for this transaction.byte[]
lease
List<AccountStateDelta>
localStateDelta
(ld) Local state key/value changes for the application being executed by this transaction.List<byte[]>
logs
(lg) Logs for the application being executed by this transaction.byte[]
note
TransactionPayment
paymentTransaction
Fields for a payment transaction.Long
receiverRewards
(rr) rewards applied to receiver account.Address
rekeyTo
Long
roundTime
Time when the block this transaction is in was confirmed.String
sender
(snd) Sender's address.Long
senderRewards
(rs) rewards applied to sender account.TransactionSignature
signature
Validation signature associated with some data.TransactionStateProof
stateProofTransaction
Fields for a state proof transaction.Enums.TxType
txType
(type) Indicates what type of transaction this is.
-
Constructor Summary
Constructors Constructor Description Transaction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
authAddr()
void
authAddr(String authAddr)
(sgnr) this is included with signed transactions when the signing address does not equal the sender.boolean
equals(Object o)
String
genesisHash()
void
genesisHash(String base64Encoded)
(gh) Hash of genesis block.String
group()
void
group(String base64Encoded)
(grp) Base64 encoded byte array of a sha512/256 digest.String
lease()
void
lease(String base64Encoded)
(lx) Base64 encoded 32-byte array.List<String>
logs()
void
logs(List<String> base64Encoded)
String
note()
void
note(String base64Encoded)
(note) Free form data.String
rekeyTo()
void
rekeyTo(String rekeyTo)
(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.-
Methods inherited from class com.algorand.algosdk.v2.client.common.PathResponse
toString
-
-
-
-
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.
-
rekeyTo
public Address rekeyTo
-
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
-
-
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
-
authAddr
public String authAddr() throws NoSuchAlgorithmException
- 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()
-
note
public void note(String base64Encoded)
(note) Free form data.
-
note
public String note()
-
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
-
rekeyTo
public String rekeyTo() throws NoSuchAlgorithmException
- Throws:
NoSuchAlgorithmException
-
-