notifyVirtualSelectedParentBlueScoreChanged method
Stream<Int64>
notifyVirtualSelectedParentBlueScoreChanged(
)
Implementation
Stream<Int64> notifyVirtualSelectedParentBlueScoreChanged() {
final message = KaspadMessage(
notifyVirtualSelectedParentBlueScoreChangedRequest:
NotifyVirtualSelectedParentBlueScoreChangedRequestMessage(),
);
final response = _streamRequest(message);
final result = response.map((event) {
final error =
event.notifyVirtualSelectedParentBlueScoreChangedResponse.error;
if (error.message.isNotEmpty) {
throw RpcException(error);
}
return event.virtualSelectedParentBlueScoreChangedNotification
.virtualSelectedParentBlueScore;
}).skip(1);
return result;
}