Header class
Header defines the structure of a block header.
- Inheritance
Constructors
-
Header({required Consensus version, required String chainId, BigInt? height, required ProtobufTimestamp time, required BlockID lastBlockId, List<
int> ? lastCommitHash, List<int> ? dataHash, List<int> ? validatorsHash, List<int> ? nextValidatorsHash, List<int> ? consensusHash, List<int> ? appHash, List<int> ? lastResultsHash, List<int> ? evidenceHash, List<int> ? proposerAddress}) -
Header.deserialize(List<
int> bytes) -
factory
-
Header.fromRpc(Map<
String, dynamic> json) -
factory
Properties
-
appHash
→ List<
int> ? -
final
- chainId → String
-
final
-
consensusHash
→ List<
int> ? -
final
-
dataHash
→ List<
int> ? -
final
-
evidenceHash
→ List<
int> ? -
consensus info
final
-
fieldIds
→ List<
int> -
List of field IDs corresponding to the values.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → BigInt?
-
final
- lastBlockId → BlockID
-
prev block info
final
-
lastCommitHash
→ List<
int> ? -
hashes of block data
final
-
lastResultsHash
→ List<
int> ? -
final
-
nextValidatorsHash
→ List<
int> ? -
final
-
proposerAddress
→ List<
int> ? -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- time → ProtobufTimestamp
-
final
- toHex → String
-
Gets the hexadecimal representation of the protocol buffer data.
no setterinherited
- typeUrl → String
-
no setteroverride
-
validatorsHash
→ List<
int> ? -
hashes from the app output from the prev block
final
- values → List
-
List of dynamic values to be encoded.
no setteroverride
- version → Consensus
-
basic block info
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toAny(
) → Any -
inherited
-
toBuffer(
) → List< int> -
Converts the protocol buffer data to a byte buffer.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts the data to a JSON representation.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited