public final class BlockMetadata extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
BlockMetadata.Builder |
| 限定符和类型 | 字段和说明 |
|---|---|
AccountAddress |
author |
Optional<AuthenticationKey> |
author_auth_key |
ChainId |
chain_id |
Long |
number |
Long |
parent_gas_used |
HashValue |
parent_hash |
Long |
timestamp |
Long |
uncles |
| 构造器和说明 |
|---|
BlockMetadata(HashValue parent_hash,
Long timestamp,
AccountAddress author,
Optional<AuthenticationKey> author_auth_key,
Long uncles,
Long number,
ChainId chain_id,
Long parent_gas_used) |
| 限定符和类型 | 方法和说明 |
|---|---|
static BlockMetadata |
bcsDeserialize(byte[] input) |
byte[] |
bcsSerialize() |
static BlockMetadata |
deserialize(Deserializer deserializer) |
boolean |
equals(Object obj) |
int |
hashCode() |
void |
serialize(Serializer serializer) |
public final HashValue parent_hash
public final Long timestamp
public final AccountAddress author
public final Optional<AuthenticationKey> author_auth_key
public final Long uncles
public final Long number
public final ChainId chain_id
public final Long parent_gas_used
public BlockMetadata(HashValue parent_hash, Long timestamp, AccountAddress author, Optional<AuthenticationKey> author_auth_key, Long uncles, Long number, ChainId chain_id, Long parent_gas_used)
public static BlockMetadata deserialize(Deserializer deserializer) throws DeserializationError
public static BlockMetadata bcsDeserialize(byte[] input) throws DeserializationError
public void serialize(Serializer serializer) throws SerializationError
public byte[] bcsSerialize()
throws SerializationError
Copyright © 2021. All rights reserved.