public abstract class Transaction extends Inventory
| Modifier and Type | Field and Description |
|---|---|
Attribute[] |
attributes |
long |
gasLimit |
long |
gasPrice |
int |
nonce |
Address |
payer |
Sig[] |
sigs |
TransactionType |
txType |
byte |
version |
| Modifier | Constructor and Description |
|---|---|
protected |
Transaction(TransactionType type) |
| Modifier and Type | Method and Description |
|---|---|
void |
deserialize(BinaryReader reader) |
protected void |
deserializeExclusiveData(BinaryReader reader) |
static Transaction |
deserializeFrom(BinaryReader reader) |
static Transaction |
deserializeFrom(byte[] value) |
static Transaction |
deserializeFrom(byte[] value,
int offset) |
void |
deserializeUnsigned(BinaryReader reader) |
boolean |
equals(Object obj) |
Address[] |
getAddressU160ForVerifying() |
int |
hashCode() |
InventoryType |
inventoryType() |
Object |
json() |
void |
serialize(BinaryWriter writer) |
protected void |
serializeExclusiveData(BinaryWriter writer) |
void |
serializeUnsigned(BinaryWriter writer) |
boolean |
verify() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetHashData, sign, verifySignaturefrom, toArray, toHexStringpublic byte version
public TransactionType txType
public int nonce
public long gasPrice
public long gasLimit
public Address payer
public Attribute[] attributes
public Sig[] sigs
protected Transaction(TransactionType type)
public static Transaction deserializeFrom(byte[] value) throws IOException
IOExceptionpublic static Transaction deserializeFrom(byte[] value, int offset) throws IOException
IOExceptionpublic static Transaction deserializeFrom(BinaryReader reader) throws IOException
IOExceptionpublic void deserialize(BinaryReader reader) throws IOException
IOExceptionpublic void deserializeUnsigned(BinaryReader reader) throws IOException
IOExceptionprotected void deserializeExclusiveData(BinaryReader reader) throws IOException
IOExceptionpublic void serialize(BinaryWriter writer) throws IOException
IOExceptionpublic void serializeUnsigned(BinaryWriter writer) throws IOException
IOExceptionprotected void serializeExclusiveData(BinaryWriter writer) throws IOException
IOExceptionpublic Address[] getAddressU160ForVerifying()
public final InventoryType inventoryType()
inventoryType in class Inventorypublic Object json()
Copyright © 2020. All rights reserved.