| Package | Description | 
|---|---|
| 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.protocols.payments | The BIP70 payment protocol wraps Bitcoin transactions and adds various useful features like memos, refund addresses
 and authentication. | 
| 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 | 
|---|---|
| protected SendRequest | PaymentChannelServerState. makeUnsignedChannelContract(Coin valueToMe) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | PaymentChannelClientState. editContractSendRequest(SendRequest req)You can override this method in order to control the construction of the initial contract that creates the
 channel. | 
| Modifier and Type | Method and Description | 
|---|---|
| SendRequest | PaymentSession. getSendRequest()Returns a  SendRequestsuitable for broadcasting to the network. | 
| 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. | 
| static SendRequest | SendRequest. emptyWallet(Address destination) | 
| static SendRequest | SendRequest. forTx(Transaction tx)Simply wraps a pre-built incomplete transaction provided by you. | 
| SendRequest | SendRequest. fromPaymentDetails(Protos.PaymentDetails paymentDetails)Copy data from payment request. | 
| static SendRequest | SendRequest. to(Address destination,
  Coin value)Creates a new SendRequest to the given address for the given value. | 
| static SendRequest | SendRequest. to(NetworkParameters params,
  ECKey destination,
  Coin value)Creates a new SendRequest to the given pubkey for the given value. | 
| static SendRequest | SendRequest. toCLTVPaymentChannel(NetworkParameters params,
                    BigInteger time,
                    ECKey from,
                    ECKey to,
                    Coin value) | 
| static SendRequest | SendRequest. toCLTVPaymentChannel(NetworkParameters params,
                    Date releaseTime,
                    ECKey from,
                    ECKey to,
                    Coin value) | 
| static SendRequest | SendRequest. toCLTVPaymentChannel(NetworkParameters params,
                    int releaseBlock,
                    ECKey from,
                    ECKey to,
                    Coin value) | 
| Modifier and Type | Method and Description | 
|---|---|
| org.bitcoinj.wallet.Wallet.FeeCalculation | Wallet. calculateFee(SendRequest req,
            Coin value,
            List<TransactionInput> originalInputs,
            boolean needAtLeastReferenceFee,
            List<TransactionOutput> candidates) | 
| void | Wallet. completeTx(SendRequest req)Given a spend request containing an incomplete transaction, makes it valid by adding outputs and signed inputs
 according to the instructions in the request. | 
| Transaction | Wallet. sendCoins(Peer peer,
         SendRequest request)Sends coins to the given address, via the given  Peer. | 
| Wallet.SendResult | Wallet. sendCoins(SendRequest request)Satisfies the given  SendRequestusing the default transaction broadcaster configured either viaPeerGroup.addWallet(Wallet)or directly withWallet.setTransactionBroadcaster(TransactionBroadcaster). | 
| Wallet.SendResult | Wallet. sendCoins(TransactionBroadcaster broadcaster,
         SendRequest request)Sends coins according to the given request, via the given  TransactionBroadcaster. | 
| Transaction | Wallet. sendCoinsOffline(SendRequest request)Sends coins to the given address but does not broadcast the resulting pending transaction. | 
| void | Wallet. signTransaction(SendRequest req)Given a send request containing transaction, attempts to sign it's inputs. | 
Copyright © 2018. All rights reserved.