public class Header extends Struct
A Block header
| Modifier and Type | Class and Description |
|---|---|
static class |
Header.HeaderExtended
A
Block header with an additional author field that indicates the block author |
static class |
Header.HeaderValue |
| Constructor and Description |
|---|
Header(java.lang.Object value) |
| Modifier and Type | Method and Description |
|---|---|
BlockNumber |
getBlockNumber()
The wrapped
BlockNumber |
Digest |
getDigest()
The wrapped
Digest |
Hash |
getExtrinsicsRoot()
The wrapped extrisics root as a
Hash |
Hash |
getHash()
Convenience method, encodes the header and calculates the
Hash |
BlockNumber |
getNumber()
Alias for
blockNumber (this is displayed in JSON) |
Hash |
getParentHash()
The wrapped parent as a
Hash |
Hash |
getStateRoot()
The wrapped state root as a
Hash |
builder, eq, getEncodedLength, getField, isEmpty, toArray, toHex, toJson, toString, toU8a, withclear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, valuesclone, compute, computeIfAbsent, computeIfPresent, containsKey, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, sizefinalize, getClass, notify, notifyAll, wait, wait, waitgetConstructorCodec, toU8apublic BlockNumber getBlockNumber()
The wrapped BlockNumber
public BlockNumber getNumber()
Alias for blockNumber (this is displayed in JSON)