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.kits |
High level wrapper APIs around the bitcoinj building blocks.
|
org.bitcoinj.store |
Block stores persist blockchain data downloaded from remote peers.
|
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 |
---|---|
static Context |
Context.get()
Returns the current context that is associated with the calling thread.
|
static Context |
Context.getOrCreate(NetworkParameters params) |
Modifier and Type | Method and Description |
---|---|
TransactionConfidence |
Transaction.getConfidence(Context context)
Returns the confidence object for this transaction from the
TxConfidenceTable
referenced by the given Context . |
static PeerGroup |
PeerGroup.newWithTor(Context context,
AbstractBlockChain chain,
com.subgraph.orchid.TorClient torClient)
Creates a PeerGroup that accesses the network via the Tor network.
|
static PeerGroup |
PeerGroup.newWithTor(Context context,
AbstractBlockChain chain,
com.subgraph.orchid.TorClient torClient,
boolean doDiscovery)
Creates a PeerGroup that accesses the network via the Tor network.
|
static void |
Context.propagate(Context context)
Sets the given context as the current thread context.
|
Constructor and Description |
---|
AbstractBlockChain(Context context,
List<? extends Wallet> wallets,
BlockStore blockStore)
Constructs a BlockChain connected to the given list of listeners (eg, wallets) and a store.
|
BlockChain(Context context,
BlockStore blockStore)
Constructs a BlockChain that has no wallet at all.
|
BlockChain(Context params,
List<? extends Wallet> wallets,
BlockStore blockStore)
Constructs a BlockChain connected to the given list of listeners and a store.
|
BlockChain(Context context,
Wallet wallet,
BlockStore blockStore)
Constructs a BlockChain connected to the given wallet and store.
|
CheckpointManager(Context context)
Loads the default checkpoints bundled with bitcoinj
|
FullPrunedBlockChain(Context context,
FullPrunedBlockStore blockStore)
Constructs a block chain connected to the given store.
|
FullPrunedBlockChain(Context context,
List<Wallet> listeners,
FullPrunedBlockStore blockStore)
Constructs a block chain connected to the given list of wallets and a store.
|
FullPrunedBlockChain(Context context,
Wallet wallet,
FullPrunedBlockStore blockStore)
Constructs a block chain connected to the given wallet and store.
|
PeerGroup(Context context)
Creates a PeerGroup with the given context.
|
PeerGroup(Context context,
AbstractBlockChain chain)
Creates a PeerGroup for the given context and chain.
|
PeerGroup(Context context,
AbstractBlockChain chain,
ClientConnectionManager connectionManager)
Creates a new PeerGroup allowing you to specify the
ClientConnectionManager which is used to create new
connections and keep track of existing ones. |
Modifier and Type | Field and Description |
---|---|
protected Context |
WalletAppKit.context |
Constructor and Description |
---|
WalletAppKit(Context context,
File directory,
String filePrefix)
Creates a new WalletAppKit, with the given
Context . |
Constructor and Description |
---|
LevelDBBlockStore(Context context,
File directory)
Creates a LevelDB SPV block store using the JNI/C++ version of LevelDB.
|
LevelDBBlockStore(Context context,
File directory,
org.iq80.leveldb.DBFactory dbFactory)
Creates a LevelDB SPV block store using the given factory, which is useful if you want a pure Java version.
|
Modifier and Type | Field and Description |
---|---|
protected Context |
Wallet.context |
Modifier and Type | Method and Description |
---|---|
Context |
Wallet.getContext()
Returns the API context that this wallet was created with.
|
Constructor and Description |
---|
Wallet(Context context)
Creates a new, empty wallet with a randomly chosen seed and no transactions.
|
Copyright © 2016. All rights reserved.