BlockHeader constructor
BlockHeader({})
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;
}