public class Block extends Inventory
| Modifier and Type | Field and Description |
|---|---|
UInt256 |
blockRoot |
byte[][] |
bookkeepers |
long |
consensusData |
byte[] |
consensusPayload |
UInt256 |
hash |
int |
height |
Address |
nextBookkeeper |
UInt256 |
prevBlockHash |
String[] |
sigData |
int |
timestamp |
Transaction[] |
transactions |
UInt256 |
transactionsRoot |
int |
version |
| Constructor and Description |
|---|
Block() |
| Modifier and Type | Method and Description |
|---|---|
void |
deserialize(BinaryReader reader) |
void |
deserializeUnsigned(BinaryReader reader) |
boolean |
equals(Object obj) |
static Block |
fromTrimmedData(byte[] data,
int index,
java.util.function.Function<UInt256,Transaction> txSelector) |
Address[] |
getAddressU160ForVerifying() |
int |
hashCode() |
Block |
header() |
InventoryType |
inventoryType() |
boolean |
isHeader() |
Object |
json() |
void |
serialize(BinaryWriter writer) |
void |
serializeUnsigned(BinaryWriter writer) |
byte[] |
trim() |
boolean |
verify() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetHashData, sign, verifySignaturefrom, toArray, toHexStringpublic int version
public UInt256 prevBlockHash
public UInt256 transactionsRoot
public UInt256 blockRoot
public int timestamp
public int height
public long consensusData
public byte[] consensusPayload
public Address nextBookkeeper
public String[] sigData
public byte[][] bookkeepers
public Transaction[] transactions
public UInt256 hash
public Block header()
public InventoryType inventoryType()
inventoryType in class Inventorypublic boolean isHeader()
public void deserialize(BinaryReader reader) throws IOException
IOExceptionpublic void deserializeUnsigned(BinaryReader reader) throws IOException
IOExceptionpublic void serialize(BinaryWriter writer) throws IOException
IOExceptionpublic void serializeUnsigned(BinaryWriter writer) throws IOException
IOExceptionpublic Address[] getAddressU160ForVerifying()
public Object json()
public byte[] trim()
public static Block fromTrimmedData(byte[] data, int index, java.util.function.Function<UInt256,Transaction> txSelector) throws IOException
IOExceptionCopyright © 2020. All rights reserved.