Package | Description |
---|---|
org.bitcoinj.core |
The core package contains classes for network messages like
Block and
Transaction , peer connectivity via PeerGroup ,
block chain management and the Wallet class. |
org.bitcoinj.wallet |
Classes that support the
Wallet , which knows how to find and save transactions relevant to
a set of keys or scripts, calculate balances, and spend money: the wallet has many features and can be extended
in various ways, please refer to the website for documentation on how to use it. |
Modifier and Type | Field and Description |
---|---|
protected CoinSelector |
Wallet.coinSelector |
CoinSelector |
Wallet.SendRequest.coinSelector
If not null, the
CoinSelector to use instead of the wallets default. |
Modifier and Type | Method and Description |
---|---|
CoinSelector |
Wallet.getCoinSelector()
Returns the
CoinSelector object which controls which outputs can be spent by this wallet. |
Modifier and Type | Method and Description |
---|---|
Coin |
Wallet.getBalance(CoinSelector selector)
Returns the balance that would be considered spendable by the given coin selector.
|
Coin |
Wallet.getWatchedBalance(CoinSelector selector)
Returns the balance that would be considered spendable by the given coin selector, including
any unspent balance at watched addresses.
|
void |
Wallet.setCoinSelector(CoinSelector coinSelector)
A coin selector is responsible for choosing which outputs to spend when creating transactions.
|
Modifier and Type | Class and Description |
---|---|
class |
AllowUnconfirmedCoinSelector
This coin selector will select any transaction at all, regardless of where it came from or whether it was
confirmed yet.
|
class |
DefaultCoinSelector
This class implements a
CoinSelector which attempts to get the highest priority
possible. |
class |
FilteringCoinSelector
A filtering coin selector delegates to another coin selector, but won't select outputs spent by the given transactions.
|
class |
KeyTimeCoinSelector
A coin selector that takes all coins assigned to keys created before the given timestamp.
|
Modifier and Type | Field and Description |
---|---|
protected CoinSelector |
FilteringCoinSelector.delegate |
Constructor and Description |
---|
FilteringCoinSelector(CoinSelector delegate) |
Copyright © 2014. All rights reserved.