Class 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 Detail

      • 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