Package | Description |
---|---|
org.bitcoinj.core |
The core package contains classes for network messages like
Block and
Transaction , peer connectivity via PeerGroup ,
and block chain management. |
org.bitcoinj.core.listeners | |
org.bitcoinj.jni | |
org.bitcoinj.kits |
High level wrapper APIs around the bitcoinj building blocks.
|
org.bitcoinj.protocols.channels |
Micropayment channels allow for rapid tiny payments to be made to a third party once a channel has been set up, using
some of the advanced features of the Bitcoin protocol.
|
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. |
org.bitcoinj.wallet.listeners |
Modifier and Type | Method and Description |
---|---|
void |
AbstractBlockChain.addWallet(Wallet wallet)
Add a wallet to the BlockChain.
|
void |
PeerGroup.addWallet(Wallet wallet)
Link the given wallet to this PeerGroup.
|
void |
Peer.addWallet(Wallet wallet)
Links the given wallet to this peer.
|
void |
AbstractBlockChain.removeWallet(Wallet wallet)
Removes a wallet from the chain.
|
void |
PeerGroup.removeWallet(Wallet wallet)
Unlinks the given wallet so it no longer receives broadcast transactions or has its transactions announced.
|
void |
Peer.removeWallet(Wallet wallet)
Unlinks the given wallet from peer.
|
Constructor and Description |
---|
BlockChain(Context context,
Wallet wallet,
BlockStore blockStore)
Constructs a BlockChain connected to the given wallet and store.
|
BlockChain(NetworkParameters params,
Wallet wallet,
BlockStore blockStore)
|
FullPrunedBlockChain(Context context,
Wallet wallet,
FullPrunedBlockStore blockStore)
Constructs a block chain connected to the given wallet and store.
|
FullPrunedBlockChain(NetworkParameters params,
Wallet wallet,
FullPrunedBlockStore blockStore)
Constructs a block chain connected to the given wallet and store.
|
Constructor and Description |
---|
AbstractBlockChain(Context context,
List<? extends Wallet> wallets,
BlockStore blockStore)
Constructs a BlockChain connected to the given list of listeners (eg, wallets) and a store.
|
AbstractBlockChain(NetworkParameters params,
List<? extends Wallet> transactionReceivedListeners,
BlockStore blockStore)
|
BlockChain(Context params,
List<? extends Wallet> wallets,
BlockStore blockStore)
Constructs a BlockChain connected to the given list of listeners and a store.
|
BlockChain(NetworkParameters params,
List<? extends Wallet> wallets,
BlockStore blockStore)
|
FullPrunedBlockChain(Context context,
List<Wallet> listeners,
FullPrunedBlockStore blockStore)
Constructs a block chain connected to the given list of wallets and a store.
|
FullPrunedBlockChain(NetworkParameters params,
List<Wallet> listeners,
FullPrunedBlockStore blockStore)
|
Modifier and Type | Method and Description |
---|---|
void |
TransactionConfidenceEventListener.onTransactionConfidenceChanged(Wallet wallet,
Transaction tx)
Called when a transaction changes its confidence level.
|
Modifier and Type | Method and Description |
---|---|
void |
NativeWalletCoinsReceivedEventListener.onCoinsReceived(Wallet wallet,
Transaction tx,
Coin prevBalance,
Coin newBalance) |
void |
NativeWalletEventListener.onCoinsReceived(Wallet wallet,
Transaction tx,
Coin prevBalance,
Coin newBalance) |
void |
NativeWalletEventListener.onCoinsSent(Wallet wallet,
Transaction tx,
Coin prevBalance,
Coin newBalance) |
void |
NativeWalletCoinsSentEventListener.onCoinsSent(Wallet wallet,
Transaction tx,
Coin prevBalance,
Coin newBalance) |
void |
NativeWalletReorganizeEventListener.onReorganize(Wallet wallet) |
void |
NativeWalletEventListener.onReorganize(Wallet wallet) |
void |
NativeWalletEventListener.onScriptsChanged(Wallet wallet,
List<Script> scripts,
boolean isAddingScripts) |
void |
NativeScriptsChangeEventListener.onScriptsChanged(Wallet wallet,
List<Script> scripts,
boolean isAddingScripts) |
void |
NativeWalletEventListener.onTransactionConfidenceChanged(Wallet wallet,
Transaction tx) |
void |
NativeTransactionConfidenceEventListener.onTransactionConfidenceChanged(Wallet wallet,
Transaction tx) |
void |
NativeWalletEventListener.onWalletChanged(Wallet wallet) |
void |
NativeWalletChangeEventListener.onWalletChanged(Wallet wallet) |
Modifier and Type | Field and Description |
---|---|
protected Wallet |
WalletAppKit.vWallet |
Modifier and Type | Method and Description |
---|---|
protected Wallet |
WalletAppKit.createWallet() |
Wallet |
WalletAppKit.wallet() |
Modifier and Type | Method and Description |
---|---|
protected void |
WalletAppKit.setupAutoSave(Wallet wallet) |
Modifier and Type | Method and Description |
---|---|
void |
StoredPaymentChannelClientStates.deserializeWalletExtension(Wallet containingWallet,
byte[] data) |
void |
StoredPaymentChannelServerStates.deserializeWalletExtension(Wallet containingWallet,
byte[] data) |
static StoredPaymentChannelClientStates |
StoredPaymentChannelClientStates.getFromWallet(Wallet wallet)
Returns this extension from the given wallet, or null if no such extension was added.
|
static StoredPaymentChannelServerStates |
StoredPaymentChannelServerStates.getFromWallet(Wallet wallet)
Returns this extension from the given wallet, or null if no such extension was added.
|
PaymentChannelServerState |
StoredServerChannel.getOrCreateState(Wallet wallet,
TransactionBroadcaster broadcaster)
Gets the canonical
PaymentChannelServerState object for this channel, either by returning an existing one
or by creating a new one. |
Constructor and Description |
---|
PaymentChannelClient(Wallet wallet,
ECKey myKey,
Coin maxValue,
Sha256Hash serverId,
IPaymentChannelClient.ClientConnection conn)
Constructs a new channel manager which waits for
PaymentChannelClient.connectionOpen() before acting. |
PaymentChannelClient(Wallet wallet,
ECKey myKey,
Coin maxValue,
Sha256Hash serverId,
IPaymentChannelClient.ClientConnection conn,
PaymentChannelClient.VersionSelector versionSelector)
Constructs a new channel manager which waits for
PaymentChannelClient.connectionOpen() before acting. |
PaymentChannelClient(Wallet wallet,
ECKey myKey,
Coin maxValue,
Sha256Hash serverId,
long timeWindow,
org.spongycastle.crypto.params.KeyParameter userKeySetup,
IPaymentChannelClient.ClientConnection conn)
Constructs a new channel manager which waits for
PaymentChannelClient.connectionOpen() before acting. |
PaymentChannelClient(Wallet wallet,
ECKey myKey,
Coin maxValue,
Sha256Hash serverId,
long timeWindow,
org.spongycastle.crypto.params.KeyParameter userKeySetup,
IPaymentChannelClient.ClientConnection conn,
PaymentChannelClient.VersionSelector versionSelector)
Constructs a new channel manager which waits for
PaymentChannelClient.connectionOpen() before acting. |
PaymentChannelClientConnection(InetSocketAddress server,
int timeoutSeconds,
Wallet wallet,
ECKey myKey,
Coin maxValue,
String serverId)
Attempts to open a new connection to and open a payment channel with the given host and port, blocking until the
connection is open.
|
PaymentChannelClientConnection(InetSocketAddress server,
int timeoutSeconds,
Wallet wallet,
ECKey myKey,
Coin maxValue,
String serverId,
long timeWindow,
org.spongycastle.crypto.params.KeyParameter userKeySetup)
Attempts to open a new connection to and open a payment channel with the given host and port, blocking until the
connection is open.
|
PaymentChannelClientConnection(InetSocketAddress server,
int timeoutSeconds,
Wallet wallet,
ECKey myKey,
Coin maxValue,
String serverId,
long timeWindow,
org.spongycastle.crypto.params.KeyParameter userKeySetup,
PaymentChannelClient.VersionSelector versionSelector)
Attempts to open a new connection to and open a payment channel with the given host and port, blocking until the
connection is open.
|
PaymentChannelClientConnection(InetSocketAddress server,
int timeoutSeconds,
Wallet wallet,
ECKey myKey,
Coin maxValue,
String serverId,
PaymentChannelClient.VersionSelector versionSelector)
Attempts to open a new connection to and open a payment channel with the given host and port, blocking until the
connection is open.
|
PaymentChannelClientState(Wallet wallet,
ECKey myKey,
ECKey serverKey,
Coin value,
long expiryTimeInSeconds)
Creates a state object for a payment channel client.
|
PaymentChannelServer(TransactionBroadcaster broadcaster,
Wallet wallet,
Coin minAcceptedChannelSize,
long minTimeWindow,
long maxTimeWindow,
PaymentChannelServer.ServerConnection conn)
Creates a new server-side state manager which handles a single client connection.
|
PaymentChannelServer(TransactionBroadcaster broadcaster,
Wallet wallet,
Coin minAcceptedChannelSize,
PaymentChannelServer.ServerConnection conn)
Creates a new server-side state manager which handles a single client connection.
|
PaymentChannelServerListener(TransactionBroadcaster broadcaster,
Wallet wallet,
int timeoutSeconds,
Coin minAcceptedChannelSize,
PaymentChannelServerListener.HandlerFactory eventHandlerFactory)
Sets up a new payment channel server which listens on the given port.
|
PaymentChannelServerState(TransactionBroadcaster broadcaster,
Wallet wallet,
ECKey serverKey,
long minExpireTime)
Creates a new state object to track the server side of a payment channel.
|
PaymentChannelV1ClientState(Wallet wallet,
ECKey myKey,
ECKey serverMultisigKey,
Coin value,
long expiryTimeInSeconds)
Creates a state object for a payment channel client.
|
PaymentChannelV1ServerState(TransactionBroadcaster broadcaster,
Wallet wallet,
ECKey serverKey,
long minExpireTime)
Creates a new state object to track the server side of a payment channel.
|
PaymentChannelV2ClientState(Wallet wallet,
ECKey myKey,
ECKey serverMultisigKey,
Coin value,
long expiryTimeInSeconds) |
PaymentChannelV2ServerState(TransactionBroadcaster broadcaster,
Wallet wallet,
ECKey serverKey,
long minExpireTime) |
StoredPaymentChannelClientStates(Wallet containingWallet)
Creates a new StoredPaymentChannelClientStates and associates it with the given
Wallet
Use this constructor if you use WalletAppKit, it will provide the broadcaster for you (no need to call the setter) |
StoredPaymentChannelClientStates(Wallet containingWallet,
TransactionBroadcaster announcePeerGroup)
Creates a new StoredPaymentChannelClientStates and associates it with the given
Wallet and
TransactionBroadcaster which are used to complete and announce contract and refund
transactions. |
StoredPaymentChannelServerStates(Wallet wallet)
Creates a new PaymentChannelServerStateManager and associates it with the given
Wallet
Use this constructor if you use WalletAppKit, it will provide the broadcaster for you (no need to call the setter) |
StoredPaymentChannelServerStates(Wallet wallet,
TransactionBroadcaster broadcaster)
Creates a new PaymentChannelServerStateManager and associates it with the given
Wallet and
TransactionBroadcaster which are used to complete and announce payment transactions. |
Modifier and Type | Field and Description |
---|---|
protected Wallet |
DefaultRiskAnalysis.wallet |
Modifier and Type | Method and Description |
---|---|
Wallet |
WalletProtobufSerializer.WalletFactory.create(NetworkParameters params,
KeyChainGroup keyChainGroup) |
static Wallet |
Wallet.fromKeys(NetworkParameters params,
List<ECKey> keys)
Creates a wallet containing a given set of keys.
|
static Wallet |
Wallet.fromSeed(NetworkParameters params,
DeterministicSeed seed) |
static Wallet |
Wallet.fromWatchingKey(NetworkParameters params,
DeterministicKey watchKey)
Creates a wallet that tracks payments to and from the HD key hierarchy rooted by the given watching key.
|
static Wallet |
Wallet.fromWatchingKeyB58(NetworkParameters params,
String watchKeyB58,
long creationTimeSeconds)
Creates a wallet that tracks payments to and from the HD key hierarchy rooted by the given watching key.
|
static Wallet |
Wallet.loadFromFile(File file,
WalletExtension... walletExtensions)
Returns a wallet deserialized from the given file.
|
static Wallet |
Wallet.loadFromFileStream(InputStream stream,
WalletExtension... walletExtensions)
Returns a wallet deserialized from the given input stream and wallet extensions.
|
Wallet |
WalletProtobufSerializer.readWallet(InputStream input,
boolean forceReset,
WalletExtension[] extensions)
Loads wallet data from the given protocol buffer and inserts it into the given Wallet object.
|
Wallet |
WalletProtobufSerializer.readWallet(InputStream input,
WalletExtension... walletExtensions)
Loads wallet data from the given protocol buffer and inserts it into the given Wallet object.
|
Wallet |
WalletProtobufSerializer.readWallet(NetworkParameters params,
WalletExtension[] extensions,
Protos.Wallet walletProto)
Loads wallet data from the given protocol buffer and inserts it into the given Wallet object.
|
Wallet |
WalletProtobufSerializer.readWallet(NetworkParameters params,
WalletExtension[] extensions,
Protos.Wallet walletProto,
boolean forceReset)
Loads wallet data from the given protocol buffer and inserts it into the given Wallet object.
|
Modifier and Type | Method and Description |
---|---|
static SendRequest |
SendRequest.childPaysForParent(Wallet wallet,
Transaction parentTransaction,
Coin feeRaise)
Construct a SendRequest for a CPFP (child-pays-for-parent) transaction.
|
DefaultRiskAnalysis |
DefaultRiskAnalysis.Analyzer.create(Wallet wallet,
Transaction tx,
List<Transaction> dependencies) |
RiskAnalysis |
RiskAnalysis.Analyzer.create(Wallet wallet,
Transaction tx,
List<Transaction> dependencies) |
void |
WalletExtension.deserializeWalletExtension(Wallet containingWallet,
byte[] data)
Loads the contents of this object from the wallet.
|
Protos.Wallet |
WalletProtobufSerializer.walletToProto(Wallet wallet)
Converts the given wallet to the object representation of the protocol buffers.
|
String |
WalletProtobufSerializer.walletToText(Wallet wallet)
Returns the given wallet formatted as text.
|
void |
WalletProtobufSerializer.writeWallet(Wallet wallet,
OutputStream output)
Formats the given wallet (transactions and keys) to the given output stream in protocol buffer format.
|
Constructor and Description |
---|
KeyTimeCoinSelector(Wallet wallet,
long unixTimeSeconds,
boolean ignorePending) |
WalletFiles(Wallet wallet,
File file,
long delay,
TimeUnit delayTimeUnit)
Initialize atomic and optionally delayed writing of the wallet file to disk.
|
Modifier and Type | Method and Description |
---|---|
void |
WalletCoinsReceivedEventListener.onCoinsReceived(Wallet wallet,
Transaction tx,
Coin prevBalance,
Coin newBalance)
This is called when a transaction is seen that sends coins to this wallet, either because it
was broadcast across the network or because a block was received.
|
void |
AbstractWalletEventListener.onCoinsReceived(Wallet wallet,
Transaction tx,
Coin prevBalance,
Coin newBalance)
Deprecated.
|
void |
AbstractWalletEventListener.onCoinsSent(Wallet wallet,
Transaction tx,
Coin prevBalance,
Coin newBalance)
Deprecated.
|
void |
WalletCoinsSentEventListener.onCoinsSent(Wallet wallet,
Transaction tx,
Coin prevBalance,
Coin newBalance)
This is called when a transaction is seen that sends coins from this wallet, either
because it was broadcast across the network or because a block was received.
|
void |
WalletReorganizeEventListener.onReorganize(Wallet wallet)
This is called when a block is received that triggers a block chain re-organization.
|
void |
AbstractWalletEventListener.onReorganize(Wallet wallet)
Deprecated.
|
void |
ScriptsChangeEventListener.onScriptsChanged(Wallet wallet,
List<Script> scripts,
boolean isAddingScripts)
Called whenever a new watched script is added to the wallet.
|
void |
AbstractWalletEventListener.onScriptsChanged(Wallet wallet,
List<Script> scripts,
boolean isAddingScripts)
Deprecated.
|
void |
AbstractWalletEventListener.onTransactionConfidenceChanged(Wallet wallet,
Transaction tx)
Deprecated.
|
void |
AbstractWalletEventListener.onWalletChanged(Wallet wallet)
Deprecated.
|
void |
WalletChangeEventListener.onWalletChanged(Wallet wallet)
Designed for GUI applications to refresh their transaction lists.
|
Copyright © 2016. All rights reserved.