Packages

case class UtxoHandling(spendingInfoDAO: SpendingInfoDAO, transactionDAO: TransactionDAO, addressDAO: AddressDAO, chainQueryApi: ChainQueryApi)(implicit walletConfig: WalletAppConfig, system: ActorSystem) extends UtxoHandlingApi with BitcoinSLogger with Product with Serializable

Provides functionality related to handling UTXOs in our wallet. The most notable examples of functionality here are enumerating UTXOs in the wallet and importing a UTXO into the wallet for later spending.

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. UtxoHandling
  2. Serializable
  3. Product
  4. Equals
  5. BitcoinSLogger
  6. UtxoHandlingApi
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new UtxoHandling(spendingInfoDAO: SpendingInfoDAO, transactionDAO: TransactionDAO, addressDAO: AddressDAO, chainQueryApi: ChainQueryApi)(implicit walletConfig: WalletAppConfig, system: ActorSystem)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val addressDAO: AddressDAO
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. val chainQueryApi: ChainQueryApi
  7. def clearAllAddresses(): Future[Unit]
    Definition Classes
    UtxoHandlingUtxoHandlingApi
  8. def clearAllUtxos(): Future[Unit]

    Removes all utxos from the wallet.

    Removes all utxos from the wallet. Don't call this unless you are sure you can recover your wallet

    Definition Classes
    UtxoHandlingUtxoHandlingApi
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  12. final def findByOutPoint(outPoint: TransactionOutPoint)(implicit ec: ExecutionContext): Future[Option[SpendingInfoDb]]
    Definition Classes
    UtxoHandlingApi
  13. def findByOutPoints(outPoints: Vector[TransactionOutPoint]): Future[Vector[SpendingInfoDb]]
    Definition Classes
    UtxoHandlingUtxoHandlingApi
  14. def findByScriptPubKey(scriptPubKey: ScriptPubKey): Future[Vector[SpendingInfoDb]]
    Definition Classes
    UtxoHandlingUtxoHandlingApi
  15. def findOutputsBeingSpent(tx: Transaction): Future[Vector[SpendingInfoDb]]

    Finds all the outputs in our wallet being spent in the given transaction

    Finds all the outputs in our wallet being spent in the given transaction

    Definition Classes
    UtxoHandlingUtxoHandlingApi
  16. final def getBalance(tag: AddressTag)(implicit ec: ExecutionContext): Future[CurrencyUnit]
    Definition Classes
    UtxoHandlingApi
  17. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. def getConfirmedBalance(tag: AddressTag): Future[CurrencyUnit]
    Definition Classes
    UtxoHandlingUtxoHandlingApi
  19. def getUnconfirmedBalance(tag: AddressTag): Future[CurrencyUnit]
    Definition Classes
    UtxoHandlingUtxoHandlingApi
  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  21. def listDefaultAccountUtxos(): Future[Vector[SpendingInfoDb]]
    Definition Classes
    UtxoHandlingUtxoHandlingApi
  22. def listUtxos(hdAccount: HDAccount, state: TxoState): Future[Vector[SpendingInfoDb]]
    Definition Classes
    UtxoHandlingUtxoHandlingApi
  23. def listUtxos(state: TxoState): Future[Vector[SpendingInfoDb]]
    Definition Classes
    UtxoHandlingUtxoHandlingApi
  24. def listUtxos(hdAccount: HDAccount, tag: AddressTag): Future[Vector[SpendingInfoDb]]
    Definition Classes
    UtxoHandlingUtxoHandlingApi
  25. def listUtxos(tag: AddressTag): Future[Vector[SpendingInfoDb]]
    Definition Classes
    UtxoHandlingUtxoHandlingApi
  26. def listUtxos(outPoints: Vector[TransactionOutPoint]): Future[Vector[SpendingInfoDb]]

    Returns all the utxos originating from the given outpoints

    Returns all the utxos originating from the given outpoints

    Definition Classes
    UtxoHandlingUtxoHandlingApi
  27. def listUtxos(hdAccount: HDAccount): Future[Vector[SpendingInfoDb]]
    Definition Classes
    UtxoHandlingUtxoHandlingApi
  28. def listUtxos(): Future[Vector[SpendingInfoDb]]

    Lists unspent transaction outputs in the wallet

    Lists unspent transaction outputs in the wallet

    returns

    Vector[SpendingInfoDb]

    Definition Classes
    UtxoHandlingUtxoHandlingApi
  29. def logger: Logger
    Definition Classes
    BitcoinSLogger
  30. def markUTXOsAsReserved(tx: Transaction): Future[Vector[SpendingInfoDb]]

    Marks all utxos that are ours in this transactions as reserved

    Marks all utxos that are ours in this transactions as reserved

    Definition Classes
    UtxoHandlingUtxoHandlingApi
  31. def markUTXOsAsReserved(utxos: Vector[SpendingInfoDb]): Future[Vector[SpendingInfoDb]]
    Definition Classes
    UtxoHandlingUtxoHandlingApi
  32. def markUTXOsAsReservedAction(utxos: Vector[SpendingInfoDb]): DBIOAction[(Vector[SpendingInfoDb], Future[Unit]), NoStream, Read with Write]
  33. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  34. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  35. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  36. def processReceivedUtxoAction(transaction: Transaction, index: Int, blockHashWithConfsOpt: Option[BlockHashWithConfs], addressDb: AddressDb): DBIOAction[SpendingInfoDb, NoStream, Read with Write]

    Inserts the UTXO at the given index into our DB, swallowing the error if any (this is because we're operating on data we've already verified).

  37. def productElementNames: Iterator[String]
    Definition Classes
    Product
  38. val spendingInfoDAO: SpendingInfoDAO
  39. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  40. val transactionDAO: TransactionDAO
  41. def unmarkUTXOsAsReserved(tx: Transaction): Future[Vector[SpendingInfoDb]]

    Unmarks all utxos that are ours in this transactions indicating they are no longer reserved

    Unmarks all utxos that are ours in this transactions indicating they are no longer reserved

    Definition Classes
    UtxoHandlingUtxoHandlingApi
  42. def unmarkUTXOsAsReserved(utxos: Vector[SpendingInfoDb]): Future[Vector[SpendingInfoDb]]
    Definition Classes
    UtxoHandlingUtxoHandlingApi
  43. def updateUtxoPendingStates(): Future[Vector[SpendingInfoDb]]

    Takes in a block header and updates our TxoStates to the new chain tip

    Takes in a block header and updates our TxoStates to the new chain tip

    Definition Classes
    UtxoHandlingUtxoHandlingApi
  44. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  45. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  46. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from BitcoinSLogger

Inherited from UtxoHandlingApi

Inherited from AnyRef

Inherited from Any

Ungrouped