public class AccountTransaction extends BlockItem
DEFAULT_NETWORK_ID, VERSION, VERSION_SIZE| Constructor and Description |
|---|
AccountTransaction(@NonNull TransactionSignature signature,
@NonNull TransactionHeader header,
@NonNull Payload payload) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
static AccountTransaction |
fromBytes(ByteBuffer source) |
static byte[] |
getDataToSign(TransactionHeader header,
Payload payload) |
Expiry |
getExpiry()
Indicates when the transaction should expire.
|
TransactionHeader |
getHeader()
Header for the transaction.
|
Nonce |
getNonce()
Sequence number for Account Activity.
|
Payload |
getPayload()
Transaction payload, defines what this transaction does.
|
AccountAddress |
getSender()
Sender of this Transaction.
|
TransactionSignature |
getSignature()
Signature of the transaction.
|
int |
hashCode() |
String |
toString() |
fromVersionedBytes, getBlockItemType, getBytesclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetHash, getNetworkId, getVersionedBytespublic AccountTransaction(@NonNull
@NonNull TransactionSignature signature,
@NonNull
@NonNull TransactionHeader header,
@NonNull
@NonNull Payload payload)
signature - Signature of the transaction.
Signature is generated by an Account Holder by Signing the Transaction body.header - Header for the transaction.payload - Transaction payload, defines what this transaction does.public AccountAddress getSender()
AccountAddress of the sender account.public Nonce getNonce()
Nonce.public Expiry getExpiry()
public static AccountTransaction fromBytes(ByteBuffer source)
source - a buffer to read transaction bytes from, without BlockItemType byte.AccountTransactionUnsupportedOperationException - if payload can't be read.
Not all transaction (payload) types can be read.
For unsupported types, get the payload size
from the manually read TransactionHeader
and then proceed with RawPayload.public static byte[] getDataToSign(TransactionHeader header, Payload payload)
public TransactionSignature getSignature()
public TransactionHeader getHeader()
public Payload getPayload()
Copyright © 2026. All rights reserved.