BlockHeader constructor

BlockHeader(
  1. int? _version,
  2. List<int>? _prevHash,
  3. List<int>? _merkleRoot,
  4. int? _time,
  5. int? _bits,
  6. int? _nonce,
)

Constructs a new block header

version - Block version number

prevHash - sha256 hash of the previous block header

merkleRoot - sha256 hash at the root of the transaction merkle tree

time - the current block timestamp as seconds since the unix epoch

bits - the current difficulty target in compact format

nonce - the nonce field which the miner manipulates repeatedly as they try to find a sha256 hash value that matches the difficulty target

Implementation

BlockHeader(this._version, this._prevHash, this._merkleRoot, this._time, this._bits, this._nonce);