| Package | Description | 
|---|---|
| org.bitcoinj.core | The core package contains classes for network messages like  BlockandTransaction, peer connectivity viaPeerGroup,
 block chain management and theWalletclass. | 
| org.bitcoinj.kits | High level wrapper APIs around the bitcoinj building blocks. | 
| org.bitcoinj.params | Network parameters encapsulate some of the differences between different Bitcoin networks such as the main
 network, the testnet, regtest mode, unit testing params and so on. | 
| org.bitcoinj.store | Block stores persist blockchain data downloaded from remote peers. | 
| org.bitcoinj.testing | Various utilities for writing unit tests: also useful for testing your own code and apps that build on top of
 bitcoinj. | 
| Modifier and Type | Field and Description | 
|---|---|
| protected BlockStore | BlockChain. blockStoreKeeps a map of block hashes to StoredBlocks. | 
| Modifier and Type | Method and Description | 
|---|---|
| BlockStore | AbstractBlockChain. getBlockStore()Returns the  BlockStorethe chain was constructed with. | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract void | NetworkParameters. checkDifficultyTransitions(StoredBlock storedPrev,
                          Block next,
                          BlockStore blockStore)Throws an exception if the block's difficulty is not correct. | 
| static void | CheckpointManager. checkpoint(NetworkParameters params,
          InputStream checkpoints,
          BlockStore store,
          long time)Convenience method that creates a CheckpointManager, loads the given data, gets the checkpoint for the given
 time, then inserts it into the store and sets that to be the chain head. | 
| StoredBlock | StoredBlock. getPrev(BlockStore store)Given a block store, looks up the previous block in this chain. | 
| Constructor and Description | 
|---|
| AbstractBlockChain(Context context,
                  List<BlockChainListener> listeners,
                  BlockStore blockStore)Constructs a BlockChain connected to the given list of listeners (eg, wallets) and a store. | 
| AbstractBlockChain(NetworkParameters params,
                  List<BlockChainListener> listeners,
                  BlockStore blockStore) | 
| BlockChain(Context context,
          BlockStore blockStore)Constructs a BlockChain that has no wallet at all. | 
| BlockChain(Context params,
          List<BlockChainListener> 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. | 
| BlockChain(NetworkParameters params,
          BlockStore blockStore) | 
| BlockChain(NetworkParameters params,
          List<BlockChainListener> wallets,
          BlockStore blockStore) | 
| BlockChain(NetworkParameters params,
          Wallet wallet,
          BlockStore blockStore) | 
| Modifier and Type | Field and Description | 
|---|---|
| protected BlockStore | WalletAppKit. vStore | 
| Modifier and Type | Method and Description | 
|---|---|
| protected BlockStore | WalletAppKit. provideBlockStore(File file)Override this to use a  BlockStorethat isn't the default ofSPVBlockStore. | 
| BlockStore | WalletAppKit. store() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | TestNet3Params. checkDifficultyTransitions(StoredBlock storedPrev,
                          Block nextBlock,
                          BlockStore blockStore) | 
| void | AbstractBitcoinNetParams. checkDifficultyTransitions(StoredBlock storedPrev,
                          Block nextBlock,
                          BlockStore blockStore) | 
| Modifier and Type | Interface and Description | 
|---|---|
| interface  | FullPrunedBlockStoreAn implementor of FullPrunedBlockStore saves StoredBlock objects to some storage mechanism. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | DatabaseFullPrunedBlockStoreA generic full pruned block store for a relational database. | 
| class  | H2FullPrunedBlockStoreA full pruned block store using the H2 pure-java embedded database. | 
| class  | LevelDBBlockStoreAn SPV block store that writes every header it sees to a LevelDB. | 
| class  | MemoryBlockStoreKeeps  StoredBlocks in memory. | 
| class  | MemoryFullPrunedBlockStore | 
| class  | MySQLFullPrunedBlockStoreA full pruned block store using the MySQL database engine. | 
| class  | PostgresFullPrunedBlockStoreA full pruned block store using the Postgres database engine. | 
| class  | SPVBlockStoreAn SPVBlockStore holds a limited number of block headers in a memory mapped ring buffer. | 
| Modifier and Type | Field and Description | 
|---|---|
| protected BlockStore | TestWithWallet. blockStore | 
| protected BlockStore | TestWithNetworkConnections. blockStore | 
| Modifier and Type | Method and Description | 
|---|---|
| static FakeTxBuilder.BlockPair | FakeTxBuilder. createFakeBlock(BlockStore blockStore,
               long timeSeconds,
               Transaction... transactions)Emulates receiving a valid block that builds on top of the chain. | 
| static FakeTxBuilder.BlockPair | FakeTxBuilder. createFakeBlock(BlockStore blockStore,
               Transaction... transactions) | 
| static Block | FakeTxBuilder. makeSolvedTestBlock(BlockStore blockStore,
                   Address coinsTo) | 
| void | TestWithPeerGroup. setUp(BlockStore blockStore) | 
| void | TestWithNetworkConnections. setUp(BlockStore blockStore) | 
Copyright © 2015. All rights reserved.