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 TransactionApplicationapplicationTransactionFields for application transactions.TransactionAssetConfigassetConfigTransactionFields for asset allocation, re-configuration, and destruction.TransactionAssetFreezeassetFreezeTransactionFields for an asset freeze transaction.TransactionAssetTransferassetTransferTransactionFields for an asset transfer transaction.AddressauthAddrLongcloseRewards(rc) rewards applied to close-remainder-to account.LongclosingAmount(ca) closing amount for transaction.LongconfirmedRoundRound when the transaction was confirmed.LongcreatedApplicationIndexSpecifies an application index (ID) if an application was created with this transaction.LongcreatedAssetIndexSpecifies an asset index (ID) if an asset was created with this transaction.Longfee(fee) Transaction fee.LongfirstValid(fv) First valid round for this transaction.byte[]genesisHashStringgenesisId(gen) genesis block ID.List<EvalDeltaKeyValue>globalStateDelta(gd) Global state key/value changes for the application being executed by this transaction.byte[]groupTransactionHeartbeatheartbeatTransactionFields for a heartbeat transaction.StringidTransaction IDList<Transaction>innerTxnsInner transactions produced by application execution.LongintraRoundOffsetOffset into the round where this transaction was confirmed.TransactionKeyregkeyregTransactionFields for a keyreg transaction.LonglastValid(lv) Last valid round for this transaction.byte[]leaseList<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[]noteTransactionPaymentpaymentTransactionFields for a payment transaction.LongreceiverRewards(rr) rewards applied to receiver account.AddressrekeyToLongroundTimeTime when the block this transaction is in was confirmed.Stringsender(snd) Sender's address.LongsenderRewards(rs) rewards applied to sender account.TransactionSignaturesignatureValidation signature associated with some data.TransactionStateProofstateProofTransactionFields for a state proof transaction.Enums.TxTypetxType(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 StringauthAddr()voidauthAddr(String authAddr)(sgnr) this is included with signed transactions when the signing address does not equal the sender.booleanequals(Object o)StringgenesisHash()voidgenesisHash(String base64Encoded)(gh) Hash of genesis block.Stringgroup()voidgroup(String base64Encoded)(grp) Base64 encoded byte array of a sha512/256 digest.Stringlease()voidlease(String base64Encoded)(lx) Base64 encoded 32-byte array.List<String>logs()voidlogs(List<String> base64Encoded)Stringnote()voidnote(String base64Encoded)(note) Free form data.StringrekeyTo()voidrekeyTo(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
-
heartbeatTransaction
public TransactionHeartbeat heartbeatTransaction
Fields for a heartbeat transaction. Definition: data/transactions/heartbeat.go : HeartbeatTxnFields
-
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 (hb) heartbeat-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
-
-