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.

251 questions
13
votes
2 answers

Java library for Bitcoin Client Application

are there Java libraries for Bitcoin available to develop client applications?
Thor
  • 1,027
  • 1
  • 9
  • 10
11
votes
2 answers

How to get balance from a specific address in bitcoinj?

I'm trying to get the balance of a specific address in a wallet by using bitcoinj, but I don't know how. Can someone help me? Thanks in advance!!
Ander Acosta
  • 412
  • 3
  • 12
11
votes
6 answers

Accepting Bitcoin payments on my website using bitcoind? Many questions... no apparent answers

I am trying to design a system that lets me accept Bitcoins on my website. I would like to use bitcoind, or bitcoinj. However, I have many questions regarding this setup. FYI, I already read similar questions on this website and haven't gotten my…
Can Selcik
  • 111
  • 4
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,655
  • 3
  • 24
  • 45
9
votes
4 answers

Is there a known way to export my wallet private key from the "Bitcoin Android" app (com.bitcoinandroid)?

A while back, I installed the Bitcoin Android app and moved 5 BTC on it. Fast forward to now, new phone, new ROM, and the app seems completely unwilling to update its blockchain, meaning I have no way to move my BTCs elsewhere. Looking at the…
Metal
  • 193
  • 1
  • 1
  • 4
8
votes
2 answers

How to retrieve the from and to wallet addresses of a transaction?

Given a transaction's inputs and outputs, I'd like to be able to extract the wallet address (or addresses) which sent the transaction, and also the address/addresses that will receive the transaction. Which part / field of the input refers to the…
Click Upvote
  • 183
  • 1
  • 6
7
votes
1 answer

Do we have to trust at least one DNS seed?

If I understand correctly, when new bitcoin node wants to join the network, it must be introduced by guiding nodes -- DNS seeds. DNS seeds can thereafter help new node discover more existing nodes. So during the bootstrap phase, DNS seeds are the…
Bo Ye
  • 183
  • 3
7
votes
1 answer

How to sign raw transaction given a private key and SHA hash (in java)

I have followed the instructions here to build my own bitcoin transaction. Redeeming a raw transaction step by step example required Currently my code can create a transaction and compute the SHA hash but I am struggling to sign it using ECDSA. I…
alex676
  • 73
  • 1
  • 3
6
votes
1 answer

Test Network Genesis Block

I am using BitcoinJ for my java application which fetches the test network's genesis block. I referred to the basics mentioned at JavaWorld and BitcoinJ's Google Code wiki. I am able to get it running but there seems to be an error while waiting for…
Raghav Bali
  • 111
  • 2
6
votes
1 answer

How are Lightning network, duplex channels, and micropayment channels related?

I'm new to Bitcoin and just became familiar with Micropayment channels. But how exactly do they relate to: Lightning network Duplex Micropayment Channels ? I am reading about these but can't find a "big picture" view. Most big-picture posts are…
6
votes
1 answer

How do I generate offline transactions in Java?

I'd like to develop a Java binding to the Stratum Overlay Network (a server for thin clients). This requires signing on offline transactions. Can I directly use bitcoinj's API to do this? Can I copy-paste some java from from it? In shorts, how would…
ripper234
  • 26,452
  • 30
  • 111
  • 246
6
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
  • 145
  • 2
  • 5
5
votes
1 answer

How to run Bitcoinj on Heroku?

Does anyone know where I might find a tutorial on how to deploy a bitcoinj server (essentially a replica of a bitcoind server with an rpc API) on Heroku?
ZenBalance
  • 373
  • 3
  • 11
5
votes
2 answers

How do I create an offline transaction in java to broadcast via blockchain.info?

Blockchain.info has a PushTX API. How do I create & sign a raw transaction in Java for use in this API? Should I use bitcoinj? Are there any code samples?
ripper234
  • 26,452
  • 30
  • 111
  • 246
5
votes
2 answers

Which RPC may I use to query bitcoind for raw transactions coming through?

I need to capture and store the raw transactions coming through my local full-node bitcoin instance. I read here that it is possible, but there is no mention of the particular RPC calls. I also see the raw transaction JSON-RPC API, but it is still…
Jane Wayne
  • 349
  • 2
  • 9
1
2 3
16 17