BlockCommitment class

The commitment of a bloc

Annotations
  • @JsonSerializable()

Constructors

BlockCommitment({required List<int>? commitment, required int totalStake})
const
BlockCommitment.fromJson(Map<String, dynamic> json)
factory

Properties

commitment List<int>?
Commitment, array of u64 integers logging the amount of cluster stake in lamports that has voted on the block at each depth from 0 to MAX_LOCKOUT_HISTORY + 1.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
totalStake int
Total active stake, in lamports, of the current epoch.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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