public class Block extends Inventory
| 限定符和类型 | 字段和说明 |
|---|---|
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 |
| 构造器和说明 |
|---|
Block() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
deserialize(BinaryReader reader) |
void |
deserializeUnsigned(BinaryReader reader) |
boolean |
equals(Object obj) |
static Block |
fromTrimmedData(byte[] data,
int index,
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() |
getHashData, 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 在类中 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, Function<UInt256,Transaction> txSelector) throws IOException
IOExceptionCopyright © 2021. All rights reserved.