BlockHeader class

Block Header

Every block contains a blockHeader. This is probably not something you will personally use, but it's here if you need it.

Constructors

BlockHeader({required int versionBytesNum, required List<int> prevBlockHashBuf, required List<int> merkleRootBuf, required int time, required int bits, required int nonce})
BlockHeader.fromBr(Br br)
factory
BlockHeader.fromBuffer(List<int> buf)
factory
BlockHeader.fromHex(String str)
factory
BlockHeader.fromJSON(Map json)
factory

Properties

bits int
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
merkleRootBuf List<int>
getter/setter pair
nonce int
getter/setter pair
prevBlockHashBuf List<int>
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
time int
getter/setter pair
versionBytesNum int
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toBuffer() List<int>
toBw([Bw? bw]) Bw
toHex() String
toJSON() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited