Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions wallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down