From 27306c571273bae3461b9d5846bf9734a4b4d286 Mon Sep 17 00:00:00 2001 From: Andrey Grehov Date: Sat, 1 Dec 2018 19:09:10 -0500 Subject: [PATCH] Added AddressBalance method to the Wallet interface --- wallet.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wallet.go b/wallet.go index f96d3ed..859527a 100644 --- a/wallet.go +++ b/wallet.go @@ -108,6 +108,11 @@ type Wallet interface { // The returned balances should be in the coin's base unit (for example: satoshis) Balance() (confirmed, unconfirmed int64) + // AddressBalance returns the confirmed and unconfirmed aggregate balance for the address. + // + // The returned balances should be in the coin's base unit (for example: satoshis) + AddressBalance(addr btc.Address) (confirmed, unconfirmed int64) + // Transactions returns a list of transactions for this wallet. Transactions() ([]Txn, error)