We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [bitcoinj]

A Java library for processing Bitcoin, stores blockchain headers only

Filter by
Sorted by
Tagged with
12
votes
2answers
4k views

Java library for Bitcoin Client Application

are there Java libraries for Bitcoin available to develop client applications?
11
votes
6answers
1k views

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 ...
10
votes
3answers
2k views

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, ...
9
votes
4answers
9k views

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 ...
8
votes
2answers
2k views

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. ...
8
votes
2answers
3k views

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!!
6
votes
2answers
2k views

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?
6
votes
1answer
669 views

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-...
5
votes
2answers
4k views

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?
5
votes
2answers
526 views

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, ...
5
votes
1answer
3k views

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 ...
5
votes
2answers
476 views

SPV Bloom filter construction, are false positives taken from the blockchain or just due to matching with other addresses

It is my understanding that the false positive addresses generated by an SPV bloom filter do not need to necessarily be on the blockchain (ie. be addresses that have been used already). Is that a ...
5
votes
1answer
413 views

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 ...
5
votes
1answer
2k views

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?
5
votes
1answer
721 views

Load a transaction with bitcoinj

I am developing simple Bitcoin application using the bitcoinj library: The user enters the hash of a transaction and my application should return detailed information about that transaction. How can ...
5
votes
1answer
341 views

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. ...
5
votes
1answer
506 views

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 ...
4
votes
1answer
126 views

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).
4
votes
2answers
2k views

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?
4
votes
2answers
384 views

Are public keys and their corresponding hash values both added to a BitcoinJ Bloom filter?

The paper, On the Privacy Provisions of Bloom Filters in Lightweight Bitcoin Clients has this to say about Bloom filters in SPV: ...Indeed, in current implementations of SPV clients [BitcoinJ], ...
4
votes
1answer
196 views

Do all implementation of Deterministic RFC6979-compliant ECDSA signatures generate the same signed transaction given the same data?

So if I were to create the same transaction using bitcoinjs and bitcoinj, the end result of the signed transaction would be the same with both libraries, is that correct?
4
votes
1answer
509 views

What is proofOfWorkLimit?

Look at the code below from android bitcoin wallet: proofOfWorkLimit = Utils.decodeCompactBits(0x1d00ffffL); And look at the code from bitcoin qt wallet: static CBigNum bnProofOfWorkLimit(~uint256(...
4
votes
1answer
520 views

Transaction with `OP_RETURN` to a particular address

How do I formulate a transaction with OP_RETURN to a particular address using the bitcoinj library? SendRequest req; Transaction transaction = new Transaction(Main.getNetWorkParameters()); ...
4
votes
1answer
3k views

How to create raw transaction

I've started creating my own wallet in bitcoinj and I have serious problem. I want to create raw transaction without wallet object. So I wrote this piece of code: //String to a private key ...
4
votes
3answers
234 views

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. ...
4
votes
1answer
1k views

Creating a Deterministic Keychain from BIP32 master public key

I'm trying to create a bitcoinj determinstic key chain from a BIP32 master public key. This is the code that I have written so far: val xpub = "...
4
votes
1answer
288 views

How can you find how many keys you wasted in bitcoinj?

Supposed you create a new wallet and pre-populate it with 100 keys (so you don't need to back it up after each transaction). How do you know, given an instance of Wallet, which keys have been "used ...
4
votes
1answer
327 views

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 ...
4
votes
0answers
853 views

BitcoinJ - How to Create a wallet properly. (seeds, etc…) [closed]

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:...
4
votes
0answers
458 views

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 ...
3
votes
1answer
4k views

Sending bitcoins to same address

I am using the BitcoinJ API to create my wallet. When I create a transaction, I provide the change address to which change should be sent. For example: let there be 1 bitcoin at address A; then I ...
3
votes
2answers
1k views

How to get senders address with bitcoinj (no duplicate)?

I am using bitcoinj (java implementation). I have read many answers here but none of them answers my question. How to get senders address using bitcoinj? I have transaction variable tx. I can get it'...
3
votes
1answer
1k views

How to develop with the Bitcoin cash?

I have a simple wallet created with the BitcoinJ. I can create the address, track the transactions, check account balance etc with the wallet. I would like to extend the wallet for the Bitcoin cash ...
3
votes
1answer
936 views

Why the bitcoin address is not valid in any of the testNet faucet

I develop a simple Java/Maven/JSP app for bitcoin and generated the address 167Bqf3Mi3gnfhw5DhCfoYNTMxqANt3Zky I would like to send some money to this address from a bitcoin testnet faucet. I ...
3
votes
1answer
2k views

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 ...
3
votes
1answer
1k views

How to get hex string from transaction in bitcoinj

I want to use this tool: http://blockchain.info/pushtx to push transaction. I don't understand the input data. It says it is hex string representation. I've read information about that in the raw ...
3
votes
1answer
1k views

How can I create a raw transaction in hex format with Bitcoinj?

How can I create a raw transaction when I'm given the input scripts, input indexes, input txids, output script, output address and output amount? The method below works but it requires the method ...
3
votes
1answer
467 views

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 ...
3
votes
2answers
203 views

Accept payments on someone else's behalf without being able to spend them

TL;DR I wish to store some sort of key in my application for each vendor account that allows for my application to generate a receiving address for clients to make payments to. I am writing some ...
3
votes
1answer
2k views

Creating Base58 public key & private key in Java?

How can I create a base58 private key and public key in Java? I'm pretty familiar with Java and I have the bitcoinj-minimal code, but it's not clear to me how I can generate a base58 key pair from the ...
3
votes
2answers
227 views

BitCoinJ for Cloud based application

I am currently working on a cloud based project that will be accepting payments using bitcoins. I intend to use BitCoinJ to handle the payment. Unfortunately the only help I am able to get is from the ...
3
votes
1answer
433 views

How to send money to set of recipients using bitcoinj

I am creating a wallet app using the bitcoinj library. I have a use-case where I need to send bitcoins to multiple recipients in one transaction. Currently, I am creating multiple send requests for ...
3
votes
2answers
791 views

Bitcoinj: Multiple wallets

In my Java application I am now required to handle multiple bitcoin wallets (HD wallets?). This means sending and receiving BTC. Unfortunately bitcoin is quite new for me, so there are some questions: ...
3
votes
1answer
924 views

How do I check if an address belongs to my wallet using bitcoinJ?

I'm using bitcoinJ and I want to verify if some of the destination addresses in a transaction belongs to my wallet when I receive a amount of bitcoin. How can I verify it?
3
votes
1answer
210 views

In bitcoinj, why is MemoryBlockStore not used by default?

My understanding of bitcoinj is that it is used to implement a "thin client" that doesn't store the entire blockchain- just the headers. When I use the WalletAppKit, it creates a file "default....
3
votes
4answers
929 views

How to set fee in bitcoinj

Is any possible way to set fee to specific value in bitcoinj wallet? Right now I have something like this and I don't know when to set fee: Address address = Address.fromBase58(params, ...
3
votes
0answers
479 views

Creation of P2SH MultiSig Input Script

In the createP2SHMultiSigInputScript() function of BitcoinJ according to this: public static Script createP2SHMultiSigInputScript(@NullableList signatures,Script multisigProgram) Create a program ...
3
votes
0answers
136 views

Does a bitcoinj SPV node forward transactions for itself?

The bitcoinj library offers a rather convenient WalletAppKit class, which I'd like to accept payments from customers. In order to facilitate the payments I'd offer the customers to send the ...
2
votes
2answers
1k views

The BTC shows 10^8 times more than what is received in the account

I work with Java/Maven/JSP app with BitcoinJ and I have transfer about 0.0048 BTC from a testnet faucet. However, after receiving, I see that my account has balance of 480000.00 BTC. This is the ...
2
votes
2answers
1k views

Encoding my Bitcoin Address with Base58 encoding

I am trying to convert my Bitcoin Address with BitcoinJ in order to look like a normal address such as this: 1J7mdg5rbQyUHENYdx39WVWK7fsLpEoXZy. I haven't found anything exept for the Base58.encode() ...