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. def getBalance(account: HDAccount): Future[CurrencyUnit]
    Definition Classes
    UtxoHandlingUtxoHandlingApi
  17. def getBalance(): Future[CurrencyUnit]

    Get total wallet balance for the default HD account

    Get total wallet balance for the default HD account

    Definition Classes
    UtxoHandlingUtxoHandlingApi
  18. final def getBalance(tag: AddressTag)(implicit ec: ExecutionContext): Future[CurrencyUnit]
    Definition Classes
    UtxoHandlingApi
  19. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  20. def getConfirmedBalance(account: HDAccount): Future[CurrencyUnit]
    Definition Classes
    UtxoHandlingUtxoHandlingApi
  21. def getConfirmedBalance(): Future[CurrencyUnit]

    Get total confirmed wallet balance for the default HD account

    Get total confirmed wallet balance for the default HD account

    Definition Classes
    UtxoHandlingUtxoHandlingApi
  22. def getConfirmedBalance(tag: AddressTag): Future[CurrencyUnit]
    Definition Classes
    UtxoHandlingUtxoHandlingApi
  23. def getUnconfirmedBalance(account: HDAccount): Future[CurrencyUnit]
    Definition Classes
    UtxoHandlingUtxoHandlingApi
  24. def getUnconfirmedBalance(): Future[CurrencyUnit]

    Get total unconfirmed wallet balance for the default HD account

    Get total unconfirmed wallet balance for the default HD account

    Definition Classes
    UtxoHandlingUtxoHandlingApi
  25. def getUnconfirmedBalance(tag: AddressTag): Future[CurrencyUnit]
    Definition Classes
    UtxoHandlingUtxoHandlingApi
  26. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  27. def listUtxos(hdAccount: HDAccount, state: TxoState): Future[Vector[SpendingInfoDb]]
    Definition Classes
    UtxoHandlingUtxoHandlingApi
  28. def listUtxos(state: TxoState): Future[Vector[SpendingInfoDb]]
    Definition Classes
    UtxoHandlingUtxoHandlingApi
  29. def listUtxos(hdAccount: HDAccount, tag: AddressTag): Future[Vector[SpendingInfoDb]]
    Definition Classes
    UtxoHandlingUtxoHandlingApi
  30. def listUtxos(tag: AddressTag): Future[Vector[SpendingInfoDb]]
    Definition Classes
    UtxoHandlingUtxoHandlingApi
  31. 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
  32. def listUtxos(hdAccount: HDAccount): Future[Vector[SpendingInfoDb]]
    Definition Classes
    UtxoHandlingUtxoHandlingApi
  33. 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
  34. def logger: Logger
    Definition Classes
    BitcoinSLogger
  35. 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
  36. def markUTXOsAsReserved(utxos: Vector[SpendingInfoDb]): Future[Vector[SpendingInfoDb]]
    Definition Classes
    UtxoHandlingUtxoHandlingApi
  37. def markUTXOsAsReservedAction(utxos: Vector[SpendingInfoDb]): DBIOAction[(Vector[SpendingInfoDb], Future[Unit]), NoStream, Read with Write]
  38. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  39. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  40. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  41. 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).

  42. def productElementNames: Iterator[String]
    Definition Classes
    Product
  43. val spendingInfoDAO: SpendingInfoDAO
  44. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  45. val transactionDAO: TransactionDAO
  46. 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
  47. def unmarkUTXOsAsReserved(utxos: Vector[SpendingInfoDb]): Future[Vector[SpendingInfoDb]]
    Definition Classes
    UtxoHandlingUtxoHandlingApi
  48. 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
  49. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  50. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  51. 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