BlockHeader constructor

BlockHeader({
  1. Int64? timestamp,
  2. List<int>? txTrieRoot,
  3. List<int>? parentHash,
  4. Int64? number,
  5. List<int>? witnessAddress,
  6. int? version,
})

Implementation

factory BlockHeader({
  $fixnum.Int64? timestamp,
  $core.List<$core.int>? txTrieRoot,
  $core.List<$core.int>? parentHash,
  $fixnum.Int64? number,
  $core.List<$core.int>? witnessAddress,
  $core.int? version,
}) {
  final _result = create();
  if (timestamp != null) {
    _result.timestamp = timestamp;
  }
  if (txTrieRoot != null) {
    _result.txTrieRoot = txTrieRoot;
  }
  if (parentHash != null) {
    _result.parentHash = parentHash;
  }
  if (number != null) {
    _result.number = number;
  }
  if (witnessAddress != null) {
    _result.witnessAddress = witnessAddress;
  }
  if (version != null) {
    _result.version = version;
  }
  return _result;
}