Package org.bitcoinj.wallet
package 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.-
ClassDescriptionThis coin selector will select any transaction at all, regardless of where it came from or whether it was confirmed yet.Indicates that an attempt was made to upgrade a random wallet to deterministic, but there were no non-rotating random keys to use as source material for the seed.A
KeyChain
that implements the simplest model possible: it can have keys imported into it, and just acts as a dumb bag of keys.Whether this basic key chain is empty, full of regular (usable for signing) keys, or full of watching keys.Represents the results of aCoinSelector.select(Coin, List)
operation.A CoinSelector is responsible for picking some outputs to spend, from the list of all possible outputs.A DecryptingKeyBag filters a pre-existing key bag, decrypting keys as they are requested using the provided AES key.This class implements aCoinSelector
which attempts to get the highest priority possible.Default factory for creating keychains while de-serializing.The default risk analysis.The reason a transaction is considered non-standard, returned byDefaultRiskAnalysis.isStandard(Transaction)
.A deterministic key chain is aKeyChain
that uses the BIP 32 standard, as implemented byDeterministicHierarchy
, to derive all the keys in the keychain from a master seed.DeterministicKeyChain.Builder<T extends DeterministicKeyChain.Builder<T>>Holds the seed bytes for the BIP32 deterministic wallet algorithm, inside aDeterministicKeyChain
.Indicates that an attempt was made to use HD wallet features on a wallet that was deserialized from an old, pre-HD random wallet without calling upgradeToDeterministic() beforehand.Indicates that the pre-HD random wallet is encrypted, so you should try the upgrade again after getting the users password.An encryptable key chain is a key-chain that can be encrypted with a user-provided password or AES key.A filtering coin selector delegates to another coin selector, but won't select outputs spent by the given transactions.A KeyBag is simply an object that can map public keys, their 160-bit hashes and script hashes to ECKey andRedeemData
objects.A KeyChain is a class that stores a collection of keys for aWallet
.Factory interface for creation keychains while de-serializing a wallet.A KeyChainGroup is used by theWallet
and manages: aBasicKeyChain
object (which will normally be empty), and zero or moreDeterministicKeyChain
s.Builder forKeyChainGroup
.Defines a structure for hierarchical deterministic wallets.A coin selector that takes all coins assigned to keys created before the given timestamp.This class aggregates data required to spend transaction output.A RiskAnalysis represents an analysis of how likely it is that a transaction (and its dependencies) represents a possible double spending attack.A SendRequest gives the wallet information about precisely how to send money to a recipient or set of recipients.Thrown by theWalletProtobufSerializer
when the serialized protocol buffer is either corrupted, internally inconsistent or appears to be from the future.A Wallet stores keys and a record of transactions that send and receive value from those keys.Thrown if the private keys and seed of this wallet cannot be decrypted due to the supplied encryption key or password being wrong.It's possible to calculate a wallets balance from multiple points of view.Class of exceptions thrown inWallet.completeTx(SendRequest)
.Thrown when we were trying to empty the wallet, and the total amount of money we were trying to empty after being reduced for the fee was smaller than the min payment.Thrown if the resultant transaction would violate the dust rules (an output that's too small to be worthwhile).Thrown if the resultant transaction is too big for Bitcoin to process.Enumerates possible resolutions for missing signatures.Thrown if there is more than one OP_RETURN output for the resultant transaction.A SendResult is returned to you as part of sending coins to a recipient.An object implementing this interface can be added to aWallet
and provide arbitrary byte arrays that will be serialized alongside the wallet.A class that handles atomic and optionally delayed writing of the wallet file to disk.Implementors can do pre/post treatment of the wallet file.Serialize and de-serialize a wallet to a byte stream containing a protocol buffer.Stores data about a transaction that is only relevant to theWallet
class.