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. |
Modifier and Type | Class and Description |
---|---|
class |
Wallet
A Wallet stores keys and a record of transactions that send and receive value from those keys.
|
Modifier and Type | Method and Description |
---|---|
Coin |
Transaction.getValue(TransactionBag wallet)
Returns the difference of
Transaction.getValueSentFromMe(TransactionBag) and Transaction.getValueSentToMe(TransactionBag) . |
Coin |
Transaction.getValueSentFromMe(TransactionBag wallet)
Calculates the sum of the inputs that are spending coins with keys in the wallet.
|
Coin |
Transaction.getValueSentToMe(TransactionBag transactionBag)
Calculates the sum of the outputs that are sending coins to a key in the wallet.
|
List<TransactionOutput> |
Transaction.getWalletOutputs(TransactionBag transactionBag)
Returns the list of transacion outputs, whether spent or unspent, that match a wallet by address or that are
watched by a wallet, i.e., transaction outputs whose script's address is controlled by the wallet and transaction
outputs whose script is watched by the wallet.
|
boolean |
Transaction.isEveryOwnedOutputSpent(TransactionBag transactionBag)
Returns false if this transaction has at least one output that is owned by the given wallet and unspent, true
otherwise.
|
boolean |
TransactionOutput.isMine(TransactionBag transactionBag)
Returns true if this output is to a key, or an address we have the keys for, in the wallet.
|
boolean |
TransactionOutput.isMineOrWatched(TransactionBag transactionBag)
Returns true if this output is to a key in the wallet or to an address/script we are watching.
|
boolean |
TransactionOutput.isWatched(TransactionBag transactionBag)
Returns true if this output is to a key, or an address we have the keys for, in the wallet.
|
Copyright © 2014. All rights reserved.