diff --git a/core/src/main/scala/org/bitcoins/core/api/wallet/HDWalletApi.scala b/core/src/main/scala/org/bitcoins/core/api/wallet/HDWalletApi.scala index 9045bf6ac2..7b6b28c7ea 100644 --- a/core/src/main/scala/org/bitcoins/core/api/wallet/HDWalletApi.scala +++ b/core/src/main/scala/org/bitcoins/core/api/wallet/HDWalletApi.scala @@ -44,6 +44,8 @@ trait HDWalletApi extends WalletApi { def getUnconfirmedBalance(account: HDAccount): Future[CurrencyUnit] + def getNewAddress(account: HDAccount): Future[BitcoinAddress] + /** Generates a new change address */ def getNewChangeAddress(account: AccountDb): Future[BitcoinAddress] diff --git a/wallet/src/main/scala/org/bitcoins/wallet/WalletHolder.scala b/wallet/src/main/scala/org/bitcoins/wallet/WalletHolder.scala index 970ff20e00..7bfaae18a4 100644 --- a/wallet/src/main/scala/org/bitcoins/wallet/WalletHolder.scala +++ b/wallet/src/main/scala/org/bitcoins/wallet/WalletHolder.scala @@ -229,6 +229,10 @@ class WalletHolder(implicit ec: ExecutionContext) override def getNewAddress(addressType: AddressType): Future[BitcoinAddress] = delegate(_.getNewAddress(addressType)) + override def getNewAddress(account: HDAccount): Future[BitcoinAddress] = { + delegate(_.getNewAddress(account)) + } + override def getNewAddress(): Future[BitcoinAddress] = delegate( _.getNewAddress())