XmrConnectionsService class

A service that manages XMR (Monero) node connections via the Haveno gRPC API.

The XmrConnectionsClient class provides functionality for fetching, checking, adding, removing, and managing Monero node connections. It communicates with the Haveno gRPC service and uses the HavenoChannel to perform the necessary gRPC requests. It also handles gRPC errors using the GrpcErrorHandler mixin.

Constructors

XmrConnectionsService()
Creates a XmrConnectionsService instance.

Properties

hashCode int
The hash code for this object.
no setterinherited
havenoChannel HavenoChannel
The Haveno client used to communicate with the Haveno gRPC server.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addConnection(UrlConnection connection) Future<bool?>
Adds a new XMR connection to the list of available connections.
checkConnection() Future<bool?>
Checks whether the selected XMR connection is online.
checkConnections() Future<List<UrlConnection>>
Checks the status of XMR connections from the server.
getActiveConnection() Future<UrlConnection?>
Fetches the currently active XMR connection from the server.
getAutoSwitchBestConnection(bool autoSwitch) Future<bool?>
Gets the auto-switch connection setting for the Haveno daemon.
getXmrConnectionSettings() Future<List<UrlConnection>>
Fetches the list of XMR connections from the server.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeConnection(String url) Future<bool?>
Removes a specific XMR connection from the list of available connections.
setAutoSwitchBestConnection(bool autoSwitch) Future<bool?>
Enables or disables automatic switching to the best XMR connection.
setConnection(UrlConnection connection) Future<UrlConnection?>
Sets the active XMR node connection on the server.
toString() String
A string representation of this object.
inherited

Operators

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