Questions tagged [bitcoinj]

A Java library for processing Bitcoin, stores blockchain headers only

69 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0
votes
0answers
35 views

How to rebuild the balance of a Bitcoin address using bitcoin

As from the title of the question. I'm using these biconij 0.15.2 and following jar libraries: guava 0.28 bcprov-ext-jdk15on slf4j-2.0 and have downloaded all the full node blockchain Bitcoins. I ...
0
votes
0answers
39 views

Importing the keys Issue

I imported the private keys into my wallet and they appear to be added: This is the result when i run getImportedKeys(): [ECKey{pub HEX=...
0
votes
0answers
88 views

How can I generate public address from an xpub key in Java?

I have an xpub key with which I want to generate all addresses which have been used or will be used and then find out the keys which have balance. Here's a sample xpubkey with balance- ...
0
votes
1answer
39 views

When downloading the blockchain my application is become unusable, is there an issue with my code or am I using the BitcoinJ library incorrectly?

I am building a Bitcoin wallet with the BitcoinJ Library, after looking at the example of fetching a transaction that they have shown on their github it shows that you need to download the blockchain ...
0
votes
0answers
103 views

Error when sending signed transaction with blockcypher api

Im using bitcoinj library and blockcypher api for creating wallet and transactions on Bitcoin Testnet. I get this error when sending signed transaction. "error": "Error validating generated ...
0
votes
1answer
119 views

Change derive path

I've used bitcoinj wallet and used derive path as below. public static final ImmutableList<ChildNumber> ACCOUNT_ZERO_PATH = ImmutableList.of(ChildNumber.ZERO_HARDENED); But I made changes in ...
0
votes
1answer
176 views

Issue with the BitcoinJ for Litecoin. Which dependency can be used for Litecoin?

I've created a crypto-currency wallet for Bitcoin using BitcoinJ. Now I want to add Litecoin in this wallet. How to implement BitcoinJ dependency for Litecoin? While using BitcoinJ for both Litecoin ...
0
votes
1answer
130 views

Restore from 24 words seed

I have used bitcoinj for createting wallet. I made some changes and try to generate 24 words seed instead of 12 words seed. When I try to restore from 24 words seed, at that time I am using 3 method ...
0
votes
1answer
388 views

BitcoinJ : Balance and Transaction are not showing in wallet after restoring wallet from MnemonicCode

I have created a wallet with the help of WalletAppKit on Android and did some transaction in it. Now what I try to do is, restoring that wallet from mnemonic code (BIP39). It also returns the Wallet ...
0
votes
2answers
358 views

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 ...
0
votes
1answer
532 views

How can i switch from BIP32 to BIP44 using bitcoinj

i am working on a wallet that is using BIP32 for creating Accounts, addresses, xpub, public keys, transaction and etc. but now i want to switch from BIP32 to BIP 44. how can i do this using bitcoinj i ...
0
votes
0answers
51 views

How it is possible to wrap with BitcoinJ a Bitcoin Core RPC interface and drives regtest mode

Despite the fact that I have already create an address in regtest network which has Bitcoins I can not import correctly this address to my BitcoinJ app in order to execute certain functions(OP_CODE tx,...
0
votes
1answer
362 views

Java: bitcoinj; how to download a full block?

I would like to download a full block using Java and bitcoinj and then parse it to an array to be able to work with it. Here is some (very basic) pseudocode: connect to network; download ...
0
votes
1answer
227 views

Hunting missing Bitcoin from Multibit Classic

I've spent days trying tons of things but hope someone can give a bit of direction. So I purchased bitcoins, only a few in 2010, early. Then end of the year I imported them in to Multibit Classic 0.5....
0
votes
2answers
414 views

How to get unspent bitcoins using bitcoinj

I'm trying to get unspent transaction using bitcoinj like here without using api calls. How can I do this?
0
votes
0answers
106 views

blockChainDownloadLocked ignoring the duplicate request error

I work with a bitcoin wallet app using the Java/BitcoinJ. The app has custom features such as showing balance, transactions, address and sending option. It was running fine and suddenly, I get the ...
0
votes
0answers
35 views

Java bitcoinj: ECKey hashCode() and equals() overrides inconsistent

In my recent endeavor to learn Scala, reading the Scala book by Martin Odersky et al. I remember being struck by the emphasis placed by the authors on the difficulty of properly overriding the equals ...
0
votes
0answers
257 views

Bitcoin multisig tutorial

I have five private keys (of type java.math.BigInteger) called a, b, c, d, e. Please provide some code template for the following. Create an address that has "3-out-of-5" spendability for the above ...
-1
votes
1answer
114 views

Transaction not broadcasting on peer network(Blockchain)

I am using Bitcoinj and doing the transaction and I am getting the TX hash but the hash is not showing in any explorer site SendRequest finalReq = SendRequest.to(toAddress, Coin.parseCoin(ammount)....