public interface Transaction
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_NETWORK_ID |
static int |
VERSION |
static int |
VERSION_SIZE |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBytes()
Transaction serialized as bytes.
|
default Hash |
getHash()
Get the
Hash of the Transaction |
default int |
getNetworkId()
The network id.
|
default byte[] |
getVersionedBytes()
Returns serialized
Transaction
This is the raw bytes that is sent to the node. |
static final int DEFAULT_NETWORK_ID
static final int VERSION_SIZE
static final int VERSION
default byte[] getVersionedBytes()
Transaction
This is the raw bytes that is sent to the node.
It is a concatenation of the Transaction Version VERSION + getBytes()Transactionbyte[] getBytes()
BlockItemType.
These bytes are not sent directly to the node. For that getVersionedBytes() is used.
default Hash getHash()
Hash of the Transactiondefault int getNetworkId()
DEFAULT_NETWORK_IDCopyright © 2025. All rights reserved.