WalletsService class
A service that handles wallet-related operations via the Haveno gRPC API.
The WalletsService
class provides functions for interacting with the
Haveno gRPC server to perform various wallet-related tasks, such as retrieving
balances, addresses, and transactions, creating transactions, and managing
wallet passwords.
Constructors
- WalletsService()
- Creates a WalletsService 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
-
createXmrTx(
Iterable< XmrDestination> destinations) → Future<XmrTx?> - Creates a new XMR transaction for the specified destinations.
-
getBalances(
) → Future< BalancesInfo?> - Retrieves the balances of the wallet.
-
getXmrPrimaryAddress(
) → Future< String?> - Retrieves the primary XMR address of the wallet.
-
getXmrSeed(
) → Future< String?> - Retrieves the XMR seed of the wallet.
-
getXmrTxs(
) → Future< List< XmrTx> > - Retrieves the XMR transactions associated with the wallet.
-
lockWallet(
String password) → Future< void> - Locks the wallet with the provided password.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
relayXmrTx(
String metadata) → Future< void> - Relays a signed XMR transaction to the network.
-
removeWalletPassword(
String password) → Future< void> - Removes the wallet password, leaving the wallet unencrypted.
-
setWalletPassword(
String newPassword, String? password) → Future< void> - Sets a new password for the wallet.
-
toString(
) → String -
A string representation of this object.
inherited
-
unlockWallet(
String password) → Future< void> - Unlocks the wallet with the provided password.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited