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.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 |
---|---|
ListenableFuture<Transaction> |
PaymentChannelV2ServerState.close() |
abstract ListenableFuture<Transaction> |
PaymentChannelServerState.close()
Closes this channel and broadcasts the highest value payment transaction on the network.
|
ListenableFuture<Transaction> |
PaymentChannelV1ServerState.close()
Closes this channel and broadcasts the highest value payment transaction on the network.
|
boolean |
PaymentChannelServerState.incrementPayment(Coin refundSize,
byte[] signatureBytes)
Called when the client provides us with a new signature and wishes to increment total payment by size.
|
void |
PaymentChannelClientState.initiate()
Creates the initial multisig contract and incomplete refund transaction which can be requested at the appropriate
time using
PaymentChannelV1ClientState.getIncompleteRefundTransaction() and
PaymentChannelV1ClientState.getContract() . |
void |
PaymentChannelV1ClientState.initiate(org.spongycastle.crypto.params.KeyParameter userKey)
Creates the initial multisig contract and incomplete refund transaction which can be requested at the appropriate
time using
PaymentChannelV1ClientState.getIncompleteRefundTransaction() and
PaymentChannelV1ClientState.getContract() . |
void |
PaymentChannelV2ClientState.initiate(org.spongycastle.crypto.params.KeyParameter userKey) |
abstract void |
PaymentChannelClientState.initiate(org.spongycastle.crypto.params.KeyParameter userKey)
Creates the initial multisig contract and incomplete refund transaction which can be requested at the appropriate
time using
PaymentChannelV1ClientState.getIncompleteRefundTransaction() and
PaymentChannelV1ClientState.getContract() . |
void |
PaymentChannelClient.receiveMessage(Protos.TwoWayChannelMessage msg)
Called when a message is received from the server.
|
void |
IPaymentChannelClient.receiveMessage(Protos.TwoWayChannelMessage msg)
Called when a message is received from the server.
|
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.createSend(Address address,
Coin value)
Statelessly creates a transaction that sends the given value to address.
|
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
SendRequest using the default transaction broadcaster configured either via
PeerGroup.addWallet(Wallet) or directly with Wallet.setTransactionBroadcaster(TransactionBroadcaster) . |
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,
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.
|
Copyright © 2016. All rights reserved.