Packages

c

org.bitcoins.wallet.internal

AccountHandling

case class AccountHandling(walletDAOs: WalletDAOs, keyManager: BIP39KeyManagerApi)(implicit walletConfig: WalletAppConfig, ec: ExecutionContext) extends AccountHandlingApi with BitcoinSLogger with Product with Serializable

Provides functionality related enumerating accounts. Account creation does not happen here, as that requires an unlocked wallet.

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

Instance Constructors

  1. new AccountHandling(walletDAOs: WalletDAOs, keyManager: BIP39KeyManagerApi)(implicit walletConfig: WalletAppConfig, ec: ExecutionContext)

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. lazy val DEFAULT_HD_COIN: HDCoin

    The default HD coin for this wallet, read from config

    The default HD coin for this wallet, read from config

    Attributes
    protected[wallet]
  5. lazy val DEFAULT_HD_COIN_TYPE: HDCoinType

    The default HD coin type for this wallet, derived from the network we're on

    The default HD coin type for this wallet, derived from the network we're on

    Attributes
    protected[wallet]
  6. lazy val DEFAULT_HD_PURPOSE: HDPurpose

    The default HD purpose for this wallet, read from config

    The default HD purpose for this wallet, read from config

    Attributes
    protected[wallet]
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def clearUtxos(account: HDAccount): Future[Unit]
    Definition Classes
    AccountHandlingAccountHandlingApi
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  10. def createNewAccount(purpose: HDPurpose): Future[ExtPublicKey]

    Creates a new account my reading from our account database, finding the last account, and then incrementing the account index by one, and then creating that account

    Creates a new account my reading from our account database, finding the last account, and then incrementing the account index by one, and then creating that account

    Definition Classes
    AccountHandlingAccountHandlingApi
  11. def createNewAccount(hdAccount: HDAccount): Future[ExtPublicKey]

    Tries to create a new account in this wallet.

    Tries to create a new account in this wallet. Fails if the most recent account has no transaction history, as per BIP44

    Definition Classes
    AccountHandlingAccountHandlingApi
    See also

    BIP44 account section

  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  14. def findAccount(account: HDAccount): Future[Option[AccountDb]]
    Definition Classes
    AccountHandlingAccountHandlingApi
  15. def generateScriptPubKeys(account: HDAccount, addressBatchSize: Int, forceGenerateSpks: Boolean): Future[Vector[ScriptPubKey]]
    Definition Classes
    AccountHandlingAccountHandlingApi
  16. def getBalance(account: HDAccount)(implicit ec: ExecutionContext): Future[CurrencyUnit]

    Gets the balance of the given account

    Gets the balance of the given account

    Definition Classes
    AccountHandlingApi
  17. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. def getConfirmedBalance(account: HDAccount): Future[CurrencyUnit]
    Definition Classes
    AccountHandlingAccountHandlingApi
  19. def getDefaultAccount(): Future[AccountDb]

    <invalid inheritdoc annotation>

    <invalid inheritdoc annotation>

    Definition Classes
    AccountHandlingAccountHandlingApi
  20. def getDefaultAccountForType(addressType: AddressType): Future[AccountDb]

    <invalid inheritdoc annotation>

    <invalid inheritdoc annotation>

    Definition Classes
    AccountHandlingAccountHandlingApi
  21. def getNewAddress(account: AccountDb): Future[BitcoinAddress]
    Definition Classes
    AccountHandlingAccountHandlingApi
  22. def getNewAddress(account: AccountDb, chainType: HDChainType): Future[BitcoinAddress]

    Queues a request to generate an address and returns a Future that will be completed when the request is processed in the queue.

    Queues a request to generate an address and returns a Future that will be completed when the request is processed in the queue. If the queue is full it throws an exception.

    Definition Classes
    AccountHandlingAccountHandlingApi
    Exceptions thrown
  23. final def getNewAddress(account: HDAccount)(implicit ec: ExecutionContext): Future[BitcoinAddress]
    Definition Classes
    AccountHandlingApi
  24. def getNewAddressAction(account: AccountDb): DBIOAction[BitcoinAddress, NoStream, Read with Write with Transactional]
  25. def getNewAddressAction(account: HDAccount): DBIOAction[BitcoinAddress, NoStream, Read with Write with Transactional]
  26. def getNewChangeAddress(account: AccountDb): Future[BitcoinAddress]
    Definition Classes
    AccountHandlingAccountHandlingApi
  27. final def getNewChangeAddress(account: HDAccount)(implicit ec: ExecutionContext): Future[BitcoinAddress]
    Definition Classes
    AccountHandlingApi
  28. def getNewChangeAddressAction(account: AccountDb): DBIOAction[BitcoinAddress, NoStream, Read with Write with Transactional]
  29. def getNewChangeAddressAction(account: HDAccount): DBIOAction[BitcoinAddress, NoStream, Read with Write with Transactional]
  30. def getUnconfirmedBalance(account: HDAccount): Future[CurrencyUnit]
    Definition Classes
    AccountHandlingAccountHandlingApi
  31. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  32. val keyManager: BIP39KeyManagerApi
  33. def listAccounts(): Future[Vector[AccountDb]]

    <invalid inheritdoc annotation>

    <invalid inheritdoc annotation>

    Definition Classes
    AccountHandlingAccountHandlingApi
  34. def listAccounts(purpose: HDPurpose)(implicit ec: ExecutionContext): Future[Vector[AccountDb]]
    Definition Classes
    AccountHandlingApi
  35. def listAddresses(account: HDAccount): Future[Vector[AddressDb]]
    Definition Classes
    AccountHandlingAccountHandlingApi
  36. def listFundedAddresses(account: HDAccount): Future[Vector[(AddressDb, CurrencyUnit)]]
    Definition Classes
    AccountHandlingAccountHandlingApi
  37. def listSpentAddresses(account: HDAccount): Future[Vector[AddressDb]]
    Definition Classes
    AccountHandlingAccountHandlingApi
  38. def listUnusedAddresses(account: HDAccount): Future[Vector[AddressDb]]
    Definition Classes
    AccountHandlingAccountHandlingApi
  39. def logger: Logger
    Definition Classes
    BitcoinSLogger
  40. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  41. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  42. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  43. def productElementNames: Iterator[String]
    Definition Classes
    Product
  44. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  45. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  46. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  47. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  48. val walletDAOs: WalletDAOs

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from BitcoinSLogger

Inherited from AccountHandlingApi

Inherited from AnyRef

Inherited from Any

Ungrouped