Package org.starcoin.types
Class BlockMetadata
java.lang.Object
org.starcoin.types.BlockMetadata
public final class BlockMetadata extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBlockMetadata.Builder -
Field Summary
Fields Modifier and Type Field Description AccountAddressauthorOptional<AuthenticationKey>author_auth_keyChainIdchain_idLongnumberLongparent_gas_usedHashValueparent_hashLongtimestampLonguncles -
Constructor Summary
Constructors Constructor Description BlockMetadata(HashValue parent_hash, Long timestamp, AccountAddress author, Optional<AuthenticationKey> author_auth_key, Long uncles, Long number, ChainId chain_id, Long parent_gas_used) -
Method Summary
Modifier and Type Method Description static BlockMetadatabcsDeserialize(byte[] input)byte[]bcsSerialize()static BlockMetadatadeserialize(Deserializer deserializer)booleanequals(Object obj)inthashCode()voidserialize(Serializer serializer)
-
Field Details
-
parent_hash
-
timestamp
-
author
-
author_auth_key
-
uncles
-
number
-
chain_id
-
parent_gas_used
-
-
Constructor Details
-
BlockMetadata
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)
-
-
Method Details
-
deserialize
- Throws:
DeserializationError
-
bcsDeserialize
- Throws:
DeserializationError
-
serialize
- Throws:
SerializationError
-
bcsSerialize
- Throws:
SerializationError
-
equals
-
hashCode
public int hashCode()
-