Questions tagged [bitcoinj]

A Java library for processing Bitcoin, stores blockchain headers only

From the project page:

BitCoinJ is a Java implementation of the native BitCoin P2P protocol, which allows it to maintain a wallet and send/receive transactions without needing a local copy of the official implementation. It comes with full documentation and some example apps showing how to use the library.

It has been ported to C# in BitCoinSharp.

249 questions
10
votes
3 answers

Getting balance/downloading blockhain with bitcoinj

I am playing around with bitoinj and I can't seem to even get the most basic functionality running. What I want to do: I have one wallet with one address. I want to dowload blockchain and from that, get the wallet balance. What I did is following…
Karel Bílek
  • 2,695
  • 3
  • 24
  • 45
7
votes
2 answers

Tutorials for BitcoinJ

Beside the examples that come with BitcoinJ and the documentation on Google Code, does anyone know of any tutorials for using BitcoinJ?
g0thX
  • 165
  • 2
  • 5
5
votes
2 answers

What is the difference between bitcoinj and BitsOfProof?

bitcoinj is a bitcoin library, bitsofproof is a full server (standalone 'exe'). Beyond the above - can anyone elaborate on the difference between them? What problems they were designed to solve, their documentation, maturity level? Is there an…
ripper234
  • 26,550
  • 30
  • 111
  • 246
4
votes
0 answers

BitcoinJ - How to Create a wallet properly. (seeds, etc...)

I'm learning this as fast as possible for a project. However the documentation, I find is lacking and/or not super super clear. That said, Using BitcoinJ, I would like to know how to do the following: 1. Create a wallet Send bitcoins to an…
Multiplexor
  • 141
  • 2
4
votes
3 answers

get any transaction in p2p manner using bitcoinj

I'm pretty sure bitcoinj is capable of downloading any Bitcoin transaction from P2P nodes by broadcasting GetDataMessage because that's what it does in the peer.downloadDependenciesInternal method. I'm trying to find/implement a very simple method…
Pavel Niedoba
  • 556
  • 1
  • 4
  • 16
4
votes
1 answer

With Mike Hearn quitting Bitcoin, what seems to be the future of bitcoinj?

Mike Hearn has apparently sold all his Bitcoins. So what is to be expected about the development of bitcoinj? (and Java based clients in general).
Jus12
  • 1,365
  • 1
  • 14
  • 25
4
votes
0 answers

Bitcoinj: How to fix error "You should use Context.propagate() or a ContextPropagatingThreadFactory"

I'm using bitcoinj from a Scala application... and when I start it, I always get the following errors: [error] o.b.c.Context - Performing thread fixup: you are accessing bitcoinj via a thread that has not had any context set on it. [error]…
j3d
  • 197
  • 5
4
votes
2 answers

Bitcoinj How to create multi-signature address using bitcoinj

Can somebody help me with step-by-step list of how to create a multi signature 2-of-3 transaction using bitcoinj api?
user27079
  • 73
  • 4
3
votes
1 answer

how do I get list of all "used" addresses in bitcoinj

Bitcoinj generates receiving addresses on demand and change addresses after each transaction. So how do I list all receiving addresses ? I guess I have to deal with KeyChainGroup and BasicKeyChain. I know how to get all issued receive…
Pavel Niedoba
  • 556
  • 1
  • 4
  • 16
3
votes
1 answer

Using bitcoinj to discover peers and download the block chain

I'm sorry everyone, I have looked and stared at the API and I'm coming up with nothing. I've got a public static void main (naturally), but have no idea how to: Connect to the network Download the block chain Navigate through it. The purpose of…
TheMightyLlama
  • 201
  • 2
  • 6
2
votes
2 answers

Transaction history with bitcoinj

I am new to bitcoinj. I want to print out the list of transactions like as follow for a wallet: 1- Sent 1 BTC to Adress1 on 'A' Time 2- Received 5 BTC from Adress2 on 'B' time 3- Sent 2 BTC to Address 3 on 'C' time How can I do this?
ArslanAnjum
  • 121
  • 1
2
votes
0 answers

Java bitcoinj: Failure of getPrivateKeyEncoded or getKey?

I have the feeling something is not right with the method getPrivateKeyEncoded (which returns a DumpedPrivateKey object) of the ECKey class. If I attempt to recover the orginal key from the DumpedPrivateKey object using the getKey method, the…
Sven Williamson
  • 1,524
  • 10
  • 24
2
votes
2 answers

How to get list of all transactions in bitcoinj wallet?

I configured bitcoinj library so I can connect to network, replay blockchain, create addresses, receive and send bitcoins. I using FullPrunedDatabase as block store. I'm still missing how to find all transaction in this wallet. I'm also interested…
Pavel Niedoba
  • 556
  • 1
  • 4
  • 16
2
votes
0 answers

Why does bitcoinj need block headers and how it gets transactions

From log files and database it's obvious, that bitcoinj downloads block headers for whole blockchain history. If I'm not mistaken, it's only 80bytes hash. Why do we need to do this. I understand that we need to build list of UTXO for every address…
Pavel Niedoba
  • 556
  • 1
  • 4
  • 16
2
votes
0 answers

Send BTC with attachment using BitcoinJ

is there an example of how using BitcoinJ send BTC with an attachment? Lets say I want to write to blockchain "Vaclav Bilek Born 1991". If I understand it correctly, its just about sending minimum bitcoins possible with current minimum fee? Is…
Wenza
  • 51
  • 2
1
2 3