Package | Description |
---|---|
org.bitcoinj.core |
The core package contains classes for network messages like
Block and
Transaction , peer connectivity via PeerGroup ,
and block chain management. |
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 | 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 |
PaymentChannelServerState.broadcaster |
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 |
StoredPaymentChannelClientStates.setTransactionBroadcaster(TransactionBroadcaster transactionBroadcaster)
Use this setter if the broadcaster is not available during instantiation and you're not using WalletAppKit.
|
void |
StoredPaymentChannelServerStates.setTransactionBroadcaster(TransactionBroadcaster broadcaster)
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.
|
PaymentChannelV1ServerState(TransactionBroadcaster broadcaster,
Wallet wallet,
ECKey serverKey,
long minExpireTime)
Creates a new state object to track the server side of a payment channel.
|
PaymentChannelV2ServerState(TransactionBroadcaster broadcaster,
Wallet wallet,
ECKey serverKey,
long minExpireTime) |
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 | 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,
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. |
Copyright © 2016. All rights reserved.