NetworkStatusResponse class
NetworkStatusResponse contains basic information about the node's view of a blockchain network. It is assumed that any BlockIdentifier.Index less than or equal to CurrentBlockIdentifier.Index can be queried. If a Rosetta implementation prunes historical state, it should poputhe optional oldest_block_identifier
field with the oldest block available to query. If this is not populated, it is assumed that the genesis_block_identifier
is the oldest queryable block. If a Rosetta implementation performs some pre-sync before it is possible to query blocks, sync_status should be populated so that clients can still monitor healthiness. Without this field, it may appear that the implementation is stuck syncing and needs to be terminated.
Constructors
-
NetworkStatusResponse(BlockIdentifier current_block_identifier, Timestamp current_block_timestamp, BlockIdentifier genesis_block_identifier, List<
Peer> peers, BlockIdentifier? oldest_block_identifier, SyncStatus? sync_status) -
NetworkStatusResponse.fromMap(Map<
String, dynamic> map) -
factory
Properties
- current_block_identifier ↔ BlockIdentifier
-
getter/setter pair
- current_block_timestamp ↔ Timestamp
-
getter/setter pair
- genesis_block_identifier ↔ BlockIdentifier
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- oldest_block_identifier ↔ BlockIdentifier?
-
getter/setter pair
-
peers
↔ List<
Peer> -
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sync_status ↔ SyncStatus?
-
getter/setter pair
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