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, wait
getVersionedBytes
public Hash getHash()
Transaction
Hash
of the Transaction
getHash
in interface Transaction
public int getNetworkId()
Transaction
Transaction.DEFAULT_NETWORK_ID
getNetworkId
in interface Transaction
public static Transaction from(byte[] versionedTransactionBytes)
Transaction
from raw bytesversionedTransactionBytes
- the raw transaction bytes with version prefixed.Transaction
public int getVersion()
public byte[] getBytes()
getBytes
in interface Transaction
Copyright © 2025. All rights reserved.