| 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.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.testing | 
 Various utilities for writing unit tests: also useful for testing your own code and apps that build on top of
 bitcoinj. 
 | 
| Modifier and Type | Class and Description | 
|---|---|
class  | 
PeerGroup
Runs a set of connections to the P2P network, brings up connections to replace disconnected nodes and manages
 the interaction between them all. 
 | 
| Modifier and Type | Field and Description | 
|---|---|
protected TransactionBroadcaster | 
Wallet.vTransactionBroadcaster  | 
| Modifier and Type | Method and Description | 
|---|---|
Wallet.SendResult | 
Wallet.sendCoins(TransactionBroadcaster broadcaster,
         Address to,
         Coin value)
Sends coins to the given address, via the given  
PeerGroup. | 
Wallet.SendResult | 
Wallet.sendCoins(TransactionBroadcaster broadcaster,
         Wallet.SendRequest request)
Sends coins according to the given request, via the given  
TransactionBroadcaster. | 
void | 
Wallet.setTransactionBroadcaster(TransactionBroadcaster broadcaster)
Specifies that the given  
TransactionBroadcaster, typically a PeerGroup, should be used for
 sending transactions to the Bitcoin network by default. | 
| Modifier and Type | Method and Description | 
|---|---|
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. | 
void | 
StoredPaymentChannelServerStates.setTransactionBroadcaster(TransactionBroadcaster broadcaster)
Use this setter if the broadcaster is not available during instantiation and you're not using WalletAppKit. 
 | 
void | 
StoredPaymentChannelClientStates.setTransactionBroadcaster(TransactionBroadcaster transactionBroadcaster)
Use this setter if the broadcaster is not available during instantiation and you're not using WalletAppKit. 
 | 
| Constructor and Description | 
|---|
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,
                                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,
                                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 | Class and Description | 
|---|---|
class  | 
MockTransactionBroadcaster
A mock transaction broadcaster can be used in unit tests as a stand-in for a PeerGroup. 
 | 
Copyright © 2014. All rights reserved.