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.
- Alphabetic
- By Inheritance
- AccountHandling
- Serializable
- Product
- Equals
- BitcoinSLogger
- AccountHandlingApi
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new AccountHandling(walletDAOs: WalletDAOs, keyManager: BIP39KeyManagerApi)(implicit walletConfig: WalletAppConfig, ec: ExecutionContext)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- 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]
- 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]
- 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]
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clearUtxos(account: HDAccount): Future[Unit]
- Definition Classes
- AccountHandling → AccountHandlingApi
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- 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
- AccountHandling → AccountHandlingApi
- 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
- AccountHandling → AccountHandlingApi
- See also
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def findAccount(account: HDAccount): Future[Option[AccountDb]]
- Definition Classes
- AccountHandling → AccountHandlingApi
- def generateScriptPubKeys(account: HDAccount, addressBatchSize: Int, forceGenerateSpks: Boolean): Future[Vector[ScriptPubKey]]
- Definition Classes
- AccountHandling → AccountHandlingApi
- 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
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getConfirmedBalance(account: HDAccount): Future[CurrencyUnit]
- Definition Classes
- AccountHandling → AccountHandlingApi
- def getDefaultAccount(): Future[AccountDb]
<invalid inheritdoc annotation>
<invalid inheritdoc annotation>
- Definition Classes
- AccountHandling → AccountHandlingApi
- def getDefaultAccountForType(addressType: AddressType): Future[AccountDb]
<invalid inheritdoc annotation>
<invalid inheritdoc annotation>
- Definition Classes
- AccountHandling → AccountHandlingApi
- def getNewAddress(account: AccountDb): Future[BitcoinAddress]
- Definition Classes
- AccountHandling → AccountHandlingApi
- 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
- AccountHandling → AccountHandlingApi
- Exceptions thrown
- final def getNewAddress(account: HDAccount)(implicit ec: ExecutionContext): Future[BitcoinAddress]
- Definition Classes
- AccountHandlingApi
- def getNewAddressAction(account: AccountDb): DBIOAction[BitcoinAddress, NoStream, Read with Write with Transactional]
- def getNewAddressAction(account: HDAccount): DBIOAction[BitcoinAddress, NoStream, Read with Write with Transactional]
- def getNewChangeAddress(account: AccountDb): Future[BitcoinAddress]
- Definition Classes
- AccountHandling → AccountHandlingApi
- final def getNewChangeAddress(account: HDAccount)(implicit ec: ExecutionContext): Future[BitcoinAddress]
- Definition Classes
- AccountHandlingApi
- def getNewChangeAddressAction(account: AccountDb): DBIOAction[BitcoinAddress, NoStream, Read with Write with Transactional]
- def getNewChangeAddressAction(account: HDAccount): DBIOAction[BitcoinAddress, NoStream, Read with Write with Transactional]
- def getUnconfirmedBalance(account: HDAccount): Future[CurrencyUnit]
- Definition Classes
- AccountHandling → AccountHandlingApi
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val keyManager: BIP39KeyManagerApi
- def listAccounts(): Future[Vector[AccountDb]]
<invalid inheritdoc annotation>
<invalid inheritdoc annotation>
- Definition Classes
- AccountHandling → AccountHandlingApi
- def listAccounts(purpose: HDPurpose)(implicit ec: ExecutionContext): Future[Vector[AccountDb]]
- Definition Classes
- AccountHandlingApi
- def listAddresses(account: HDAccount): Future[Vector[AddressDb]]
- Definition Classes
- AccountHandling → AccountHandlingApi
- def listFundedAddresses(account: HDAccount): Future[Vector[(AddressDb, CurrencyUnit)]]
- Definition Classes
- AccountHandling → AccountHandlingApi
- def listSpentAddresses(account: HDAccount): Future[Vector[AddressDb]]
- Definition Classes
- AccountHandling → AccountHandlingApi
- def listUnusedAddresses(account: HDAccount): Future[Vector[AddressDb]]
- Definition Classes
- AccountHandling → AccountHandlingApi
- def logger: Logger
- Definition Classes
- BitcoinSLogger
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- val walletDAOs: WalletDAOs