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.protocols.payments |
The BIP70 payment protocol wraps Bitcoin transactions and adds various useful features like memos, refund addresses
and authentication.
|
Modifier and Type | Method and Description |
---|---|
static Wallet.SendRequest |
Wallet.SendRequest.emptyWallet(Address destination) |
static Wallet.SendRequest |
Wallet.SendRequest.forTx(Transaction tx)
Simply wraps a pre-built incomplete transaction provided by you.
|
Wallet.SendRequest |
Wallet.SendRequest.fromPaymentDetails(Protos.PaymentDetails paymentDetails)
Copy data from payment request.
|
static Wallet.SendRequest |
Wallet.SendRequest.to(Address destination,
Coin value)
Creates a new SendRequest to the given address for the given value.
|
static Wallet.SendRequest |
Wallet.SendRequest.to(NetworkParameters params,
ECKey destination,
Coin value)
Creates a new SendRequest to the given pubkey for the given value.
|
Modifier and Type | Method and Description |
---|---|
org.bitcoinj.core.Wallet.FeeCalculation |
Wallet.calculateFee(Wallet.SendRequest req,
Coin value,
List<TransactionInput> originalInputs,
boolean needAtLeastReferenceFee,
LinkedList<TransactionOutput> candidates) |
void |
Wallet.completeTx(Wallet.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,
Wallet.SendRequest request)
Sends coins to the given address, via the given
Peer . |
Wallet.SendResult |
Wallet.sendCoins(TransactionBroadcaster broadcaster,
Wallet.SendRequest request)
Sends coins according to the given request, via the given
TransactionBroadcaster . |
Wallet.SendResult |
Wallet.sendCoins(Wallet.SendRequest request)
Satisfies the given
Wallet.SendRequest using the default transaction broadcaster configured either via
PeerGroup.addWallet(Wallet) or directly with Wallet.setTransactionBroadcaster(TransactionBroadcaster) . |
Transaction |
Wallet.sendCoinsOffline(Wallet.SendRequest request)
Sends coins to the given address but does not broadcast the resulting pending transaction.
|
void |
Wallet.signTransaction(Wallet.SendRequest req)
Given a send request containing transaction, attempts to sign it's inputs.
|
Modifier and Type | Method and Description |
---|---|
protected void |
PaymentChannelClientState.editContractSendRequest(Wallet.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 |
---|---|
Wallet.SendRequest |
PaymentSession.getSendRequest()
Returns a
Wallet.SendRequest suitable for broadcasting to the network. |
Copyright © 2014. All rights reserved.