Package org.ldk.structs
Class Wallet
- java.lang.Object
-
- org.ldk.structs.Wallet
-
public class Wallet extends Object
A wrapper over [`WalletSource`] that implements [`CoinSelection`] by preferring UTXOs that would avoid conflicting double spends. If not enough UTXOs are available to do so, conflicting double spends may happen.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CoinSelectionSourceas_CoinSelectionSource()Constructs a new CoinSelectionSource which calls the relevant methods on this_arg.protected voidfinalize()static Walletof(WalletSource source, Logger logger)Returns a new instance backed by the given [`WalletSource`] that serves as an implementation of [`CoinSelectionSource`].
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
of
public static Wallet of(WalletSource source, Logger logger)
Returns a new instance backed by the given [`WalletSource`] that serves as an implementation of [`CoinSelectionSource`].
-
as_CoinSelectionSource
public CoinSelectionSource as_CoinSelectionSource()
Constructs a new CoinSelectionSource which calls the relevant methods on this_arg. This copies the `inner` pointer in this_arg and thus the returned CoinSelectionSource must be freed before this_arg is
-
-