EventsBlocksResponse class
EventsBlocksResponse contains an ordered collection of BlockEvents and the max retrievable sequence.
- Annotations
-
- @immutable
Constructors
-
EventsBlocksResponse(int maxSequence, List<
BlockEvent> events) -
const
-
EventsBlocksResponse.fromJson(Map<
String, dynamic> map) -
factory
Properties
-
events
→ List<
BlockEvent> -
An array of BlockEvents indicating the order to add and remove blocks
to maintain a canonical view of blockchain state. Lightweight clients can
use this event stream to update state without implementing their own
block syncing logic.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxSequence → int
-
The maximum available sequence number to fetch.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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