public class RawTransaction extends Object implements Transaction
DEFAULT_NETWORK_ID, VERSION, VERSION_SIZE| Constructor and Description |
|---|
RawTransaction(int version,
byte[] bytes) |
| Modifier and Type | Method and Description |
|---|---|
static Transaction |
from(byte[] versionedTransactionBytes)
Create a
Transaction from raw bytes |
byte[] |
getBytes()
The raw transaction bytes
|
Hash |
getHash()
Get the
Hash of the Transaction |
int |
getNetworkId()
The network id.
|
int |
getVersion() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetVersionedBytespublic Hash getHash()
TransactionHash of the TransactiongetHash in interface Transactionpublic int getNetworkId()
TransactionTransaction.DEFAULT_NETWORK_IDgetNetworkId in interface Transactionpublic static Transaction from(byte[] versionedTransactionBytes)
Transaction from raw bytesversionedTransactionBytes - the raw transaction bytes with version prefixed.Transactionpublic int getVersion()
public byte[] getBytes()
getBytes in interface TransactionCopyright © 2025. All rights reserved.