mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-03-03 02:39:18 +01:00
Add getUnconfirmedBalance to wallet
This commit is contained in:
parent
f5591f3c0f
commit
e2ffba5d40
1 changed files with 4 additions and 3 deletions
|
@ -53,11 +53,12 @@ trait LockedWalletApi extends WalletApi {
|
|||
transaction: Transaction,
|
||||
confirmations: Int): Future[LockedWalletApi]
|
||||
|
||||
/** Sums up the value of all UTXOs in the wallet */
|
||||
// noinspection AccessorLikeMethodIsEmptyParen
|
||||
// async calls have side effects :-)
|
||||
/** Gets the sum of all confirmed UTXOs in this wallet */
|
||||
def getBalance(): Future[CurrencyUnit]
|
||||
|
||||
/** Gets the sum of all unconfirmed UTXOs in this wallet */
|
||||
def getUnconfirmedBalance(): Future[CurrencyUnit]
|
||||
|
||||
/**
|
||||
* If a UTXO is spent outside of the wallet, we
|
||||
* need to remove it from the database so it won't be
|
||||
|
|
Loading…
Add table
Reference in a new issue