i would like to download and parse bitcoin transactions using bitcoinj. so 
far, i have the following code. what more do i need to acquire the actual 
transactions? i noticed this merely places header information into the h2 
database and not the full transactions.

public class Test {
  static void main(String[] args) throws Exception {
    NetworkParameters params = new MainNetParams();
    BlockStore blockStore = new H2FullPrunedBlockStore(params, "~/testdb", 
1000);
    AbstractBlockChain blockChain = new BlockChain(params, blockStore);
    PeerGroup peerGroup = new PeerGroup(params, blockChain);
    peerGroup.setUserAgent("Sample App", "1.0");
    peerGroup.addPeerDiscovery(new DnsDiscovery(params));
    peerGroup.start();
    peerGroup.downloadBlockChain();
  }
}

-- 
You received this message because you are subscribed to the Google Groups 
"bitcoinj" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to