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.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.store |
Block stores persist blockchain data downloaded from remote peers.
|
org.bitcoinj.testing |
Various utilities for writing unit tests: also useful for testing your own code and apps that build on top of
bitcoinj.
|
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 | Method and Description |
---|---|
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.fromWatchingKey(NetworkParameters params,
DeterministicKey watchKey,
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 f)
Returns a wallet deserialized from the given file.
|
static Wallet |
Wallet.loadFromFileStream(InputStream stream)
Returns a wallet deserialized from the given input stream.
|
Modifier and Type | Method and Description |
---|---|
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.addWallet(Wallet wallet)
Add a wallet to the BlockChain.
|
void |
WalletExtension.deserializeWalletExtension(Wallet containingWallet,
byte[] data)
Loads the contents of this object from the wallet.
|
void |
WalletEventListener.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) |
void |
WalletEventListener.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 |
AbstractWalletEventListener.onCoinsSent(Wallet wallet,
Transaction tx,
Coin prevBalance,
Coin newBalance) |
void |
WalletEventListener.onReorganize(Wallet wallet)
This is called when a block is received that triggers a block chain re-organization.
|
void |
AbstractWalletEventListener.onReorganize(Wallet wallet) |
void |
WalletEventListener.onScriptsAdded(Wallet wallet,
List<Script> scripts)
Called whenever a new watched script is added to the wallet.
|
void |
AbstractWalletEventListener.onScriptsAdded(Wallet wallet,
List<Script> scripts) |
void |
WalletEventListener.onTransactionConfidenceChanged(Wallet wallet,
Transaction tx)
Called when a transaction changes its confidence level.
|
void |
AbstractWalletEventListener.onTransactionConfidenceChanged(Wallet wallet,
Transaction tx) |
void |
WalletEventListener.onWalletChanged(Wallet wallet)
Designed for GUI applications to refresh their transaction lists.
|
void |
AbstractWalletEventListener.onWalletChanged(Wallet wallet) |
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.
|
void |
AbstractBlockChain.removeWallet(Wallet wallet)
Removes a wallet from the chain.
|
Constructor and Description |
---|
BlockChain(NetworkParameters params,
Wallet wallet,
BlockStore blockStore)
Constructs a BlockChain connected to the given wallet and store.
|
FullPrunedBlockChain(NetworkParameters params,
Wallet wallet,
FullPrunedBlockStore blockStore)
Constructs a BlockChain connected to the given wallet and store.
|
Modifier and Type | Method and Description |
---|---|
void |
NativeWalletEventListener.onCoinsReceived(Wallet wallet,
Transaction tx,
Coin prevBalance,
Coin newBalance) |
void |
NativeWalletEventListener.onCoinsSent(Wallet wallet,
Transaction tx,
Coin prevBalance,
Coin newBalance) |
void |
NativeWalletEventListener.onReorganize(Wallet wallet) |
void |
NativeWalletEventListener.onScriptsAdded(Wallet wallet,
List<Script> scripts) |
void |
NativeWalletEventListener.onTransactionConfidenceChanged(Wallet wallet,
Transaction tx) |
void |
NativeWalletEventListener.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 |
---|---|
void |
StoredPaymentChannelServerStates.deserializeWalletExtension(Wallet containingWallet,
byte[] data) |
void |
StoredPaymentChannelClientStates.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.
|
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,
long timeWindow,
IPaymentChannelClient.ClientConnection conn)
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)
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 serverMultisigKey,
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.
|
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 | Method and Description |
---|---|
Wallet |
WalletProtobufSerializer.WalletFactory.create(NetworkParameters params,
KeyChainGroup keyChainGroup) |
Wallet |
WalletProtobufSerializer.readWallet(InputStream input)
Parses a wallet from the given stream, using the provided Wallet instance to load data into.
|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
Modifier and Type | Field and Description |
---|---|
protected Wallet |
TestWithWallet.wallet |
protected Wallet |
TestWithNetworkConnections.wallet |
Modifier and Type | Method and Description |
---|---|
protected Transaction |
TestWithWallet.sendMoneyToWallet(Wallet wallet,
Coin value,
Address toAddress,
AbstractBlockChain.NewBlockType type) |
protected Transaction |
TestWithWallet.sendMoneyToWallet(Wallet wallet,
Coin value,
ECKey toPubKey,
AbstractBlockChain.NewBlockType type) |
protected Transaction |
TestWithWallet.sendMoneyToWallet(Wallet wallet,
Transaction tx,
AbstractBlockChain.NewBlockType type) |
Constructor and Description |
---|
MockTransactionBroadcaster(Wallet wallet)
Sets this mock broadcaster on the given wallet.
|
Modifier and Type | Field and Description |
---|---|
protected Wallet |
DefaultRiskAnalysis.wallet |
Modifier and Type | Method and Description |
---|---|
RiskAnalysis |
RiskAnalysis.Analyzer.create(Wallet wallet,
Transaction tx,
List<Transaction> dependencies) |
DefaultRiskAnalysis |
DefaultRiskAnalysis.Analyzer.create(Wallet wallet,
Transaction tx,
List<Transaction> dependencies) |
Constructor and Description |
---|
KeyTimeCoinSelector(Wallet wallet,
long unixTimeSeconds,
boolean ignorePending) |
WalletFiles(Wallet wallet,
File file,
long delay,
TimeUnit delayTimeUnit) |
Copyright © 2014. All rights reserved.