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 populate the 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.
- Annotations
Constructors
-
NetworkStatusResponse(BlockIdentifier currentBlockIdentifier, Timestamp currentBlockTimestamp, BlockIdentifier genesisBlockIdentifier, List<
Peer> peers, BlockIdentifier? oldestBlockIdentifier, SyncStatus? syncStatus) -
const
-
NetworkStatusResponse.fromJson(Map<
String, dynamic> map) -
factory
Properties
- currentBlockIdentifier → BlockIdentifier
-
final
- currentBlockTimestamp → Timestamp
-
final
- genesisBlockIdentifier → BlockIdentifier
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- oldestBlockIdentifier → BlockIdentifier?
-
final
-
peers
→ List<
Peer> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- syncStatus → SyncStatus?
-
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