Questions tagged [bitcoinj]

A Java library for processing Bitcoin, stores blockchain headers only

Filter by
Sorted by
Tagged with
1
vote
0answers
57 views

transaction limits with bitcoinj library

After brief look into bitcoinj library, I found out that wallet class keeps all transactions in one big hash map. That make me think about transaction limits of this library. How many transaction can ...
1
vote
0answers
207 views

How to use MySQLFullPrunedBlockStore with bitcoinj-core-0.13-bundled.jar

Initailly i am using bitcoinj-core-0.12.2.jar and bitcoinj-tools-0.12.2.jar on my project.Now i updated it with bitcoinj-core-0.13-bundled.jar because i am assuming that bitcoinj-core-0.13-bundled is ...
1
vote
0answers
544 views

Transaction still pending after 12 hours

About 12 hours ago I sent BTC 0.06304568 to my test wallet... and the transactions is still pending: { "receiveAddress": "1KU9VwJ992UisoAYiPbRdSXDRVUCq4wdW1", "balance": 0, "net": "prod", "...
1
vote
0answers
221 views

Why I can't see the balance increasing in my wallet?

I wrote this function using bitcoinJ public Wallet getWallet(ECKey ecKey) { Wallet wallet = walletAppKit.wallet(); wallet.importKey(ecKey); wallet.addEventListener(new ...
1
vote
1answer
487 views

How to get pending balance in with bitcoinj?

I'm try get pending balance from wallet, but results do not match with pending transactions? Thanks for advice!
1
vote
0answers
489 views

How to create HD Wallet using bitcoinj

Married/multi-signature wallets and pluggable signers How to create Hd Wallet using bitcoinj I have tried but not understand i got the error in this wallet.addFollowingAccountKeys(Lists.newArrayList(...
1
vote
0answers
221 views

BitcoinJ seems to be calculating balance incorrectly

My application is using bitcoinj-0.11.3. I am using Wallet.getBalance(balanceType) to read wallet balance. For AVAILABLE I get 8.94106037 This is supposed to include all confirmed transactions. For ...
1
vote
1answer
250 views

How to export bitcoinj wallet

I am working on an app which uses bitcoinj. I want to implement export/import functionality to a standard format which can be shared with as many as possible wallet apps. Is there a standard format ...
1
vote
0answers
194 views

bitcoinj, unknown confidence level

I've got a bitcoin address A with its relative encrypted key K stored in a persistence storage. I am launching bitcoinj through the WalletAppKit class and calling awaitRunning to wait for the ...
1
vote
0answers
108 views

BitcoinJ without PeerNetwork

I am writing a system which generates wallets on a per user basis. It must be capable to receive and send payments. So I have to keep the private keys encrypted on the system. Generating the ...
0
votes
1answer
52 views

How to protect bitcoinj wallet?

I am a new BitcoinJ user, I have few questions related about its wallet, can anyone please help: Is there any way to encrypt the .wallet file? will anyone obtain a copy of the file be able to spend ...
0
votes
1answer
98 views

Can't see balance after some time

I'm trying to use bitcoinj library to receive bitcoin payments and monitor the balance on the address. My implementation is based on DeterministicKey watching public key. The code below is working ...
0
votes
1answer
340 views

convert 12 word seed into 24 word seed

I used bitcoinj library for wallet and it generates 12 word mnemonic seed. But I made changes in it and created 24 word mnemonic seed. But I need to convert old 12 word mnemonic seed into new 24 ...
0
votes
1answer
218 views

BIP 84, BIP 173 Implementation in BitcoinJ

Can BitcoinJ (Java) supports complete implementations of BIP 173, BIP 84? How can segwit address can be created using BitcoinJ for SPV wallet?
0
votes
2answers
94 views

I have over 130addresses and I have never sent nor received any bitcoin. How is that

How do I know the amount of bitcoins in an address. My addresses are so many and my wallet says that no bitcoins sent. How is this
0
votes
2answers
809 views

Sign transaction with multiple inputs using bitcoinj/peercoinj libraries

Good day for everyone! I have some troubles with adding signed Input to the transaction. Currently, I'm working with altCoin (fork peercoin) currency. I'm trying build the transaction in the ...
0
votes
2answers
291 views

Sync too low when using BitCoinJ to create and host own wallet

I need to use BitcoinJ to create and host wallet on my own website. However, it keeps downloading blocks and the sync seems taking forever. I need to be able to create a wallet within a few seconds. ...
0
votes
1answer
353 views

I'm working to add multiwallet support to Bitcoin Wallet App, but now the balance is no longer updating

I work with a bitcoin wallet app and the UI looks, When I select an address from the dropdown menu and would press the balance or the transaction buttons, they should open in the new page and show ...
0
votes
2answers
349 views

Cannot build circuits because we don't have enough directory information

I'm developing a bitcoin wallet app using BitcoinJ framework. While deploying the app using Tomcat 8, I get the following stack of errors, 12-Jun-2017 14:18:12.511 INFO [PeerGroup Thread] com....
0
votes
1answer
445 views

Open bitcoin-qt wallet with bitcoinj

I try to open the bitcoin-qt wallet with bitcoinj, I write this code: private static final File WALLET_FILE = new File("C:\\Users\\Bapt\\AppData\\Roaming\\Bitcoin\\wallet.dat"); public static void ...
0
votes
1answer
43 views

How to sign Bitcoin transactions using JCE?

I need to sign Bitcoin transactions using JCE primitives(no bitcoinj), but my signatures are not considered valid by bitcoinj. I tried to simulate this process. I created a random hash and signed it ...
0
votes
1answer
32 views

could'nt run wallettemplate project in bitcoinJ

I just forked bitcoinj and took the wallettemplate folder outside the bitcoinj folder to run it i've followed the steps in "getting started" docs now im stuck in trying to run the wallettemplate i ...
0
votes
1answer
53 views

Adding an external key pair to a local bitcoinj wallet

I need to add a vanity address to a local wallet that I maintain using bitcoinj APIs. I'm not able to search for the vanity using bitcoinj APIs directly, on my local PC, because my vanity is too fancy....
0
votes
1answer
154 views

Get private-keys from bitcoinj

I'm using bitcoinj library for bitcoin. I want all private keys of all my generated addresses. How can I achieve that? Please help who knows this answer. Thanks.
0
votes
1answer
71 views

Bitcoinj Standard

I'm using bitcoinj for transferring bitcoin. I don't know which standard bitcoinj supports? Bip32, Bip39, or Bip44 Please help who knows the answer. Also I want convert bitcoinj standard to Bip44. ...
0
votes
1answer
173 views

Problematic Digital Signature with SECP256K1

I am trying to test out TestNet3 and I have a keypair generated using Java crypto library. The private key is 23F847360E1EB348A212F443C633058080A8EB9F05AD132F8B82D51FE672EADD and the public key is ...
0
votes
1answer
141 views

How to get confirmation of transaction using Bitcoin j implementaion

I am using BitcoinJ lib for creating wallet and transaction.But now I want to know the confirmation count.So, is there any method which can give confirmation count
0
votes
1answer
703 views

generate wallet addresses from extended public key

i am trying to generate addresses from Extended Public Key using bitcoinj but can't figure out, how can i possibly do this. i need those addresses for watch-only wallet, those addresses were ...
0
votes
1answer
91 views

Cancel pending transaction (bitcoinj)

I'm using bitcoincashj (https://github.com/bitcoinj-cash/bitcoinj) I created a transaction and sent it. But it didn't broadcasted to network. Can I cancel this transaction? Current wallet status is: ...
0
votes
1answer
235 views

Bitcoinj unable to load wallet

So I want to load a wallet and get its balance also sending some funds with the corresponding wallet, here is my code public class DumpWallet { public static void main(String[] args) throws Exception ...
0
votes
1answer
169 views

How to size in bytes for a transaction using BitcoinJ

The calculation of a transaction fee uses fee/kb. So how do I get the size in bytes for a transaction using BitcoinJ? SendRequest req = SendRequest.to(address, value); req.feePerKb = Coin.parseCoin("...
0
votes
1answer
636 views

Create an OP_RETURN tx and validate it's existence in Regtest

A part of my MSc thesis is storing the hash of a string with OP_RETURN tx in the Blockchain to exist as a proof. My main concerns are: -how can i send this tx successfully to my regtest network -...
0
votes
1answer
254 views

Which branch of bitcoinj should I sync to?

I am experimenting with Bitcoinj to design a stable node that is synced. Older versions of bitcoinj seem to drop connections and stop syncing. I currently see the following branches (see screenshots)...
0
votes
1answer
1k views

HD wallet implementation

I want to create public addresses in offline browser from master public key so that owner of master private can access the funds available in child address. but I am not able to understand how to use ...
0
votes
1answer
351 views

WalletAppKit creates an address every time Bitcoinj gets initialized

I'm implementing an app using BitcoinJ, but every time I run the code, a new address is created. Is there any way to work with the very first address that was created and stop creating new addresses? ...
0
votes
1answer
77 views

How to get the last executed transaction?

I work with a Wallet app and using the BitcoinJ for programming. I need to find the last executed transaction from the wallet. In the org.bitcoinj.core.Wallet class, I see there is a method ...
0
votes
1answer
856 views

How to convert Satoshi to BTC in Java?

I get the value of money in Satoshi and I would like to have it in BTC. I develop the app in Java/Maven/JSP and use BitcoinJ for the framework. I use the code, public Coin getBalance() { ...
0
votes
1answer
245 views

Is there a way to get the address of associated with a transaction input with bitcoinj?

If I was not mistaken, with transactioninput.getConnectedOutput(), the output which is used for the input is obtained. But what to do later? There seem to be two relevant methods: ...
0
votes
1answer
178 views

Should signature verification by key recovery ignore compression status?

The bitcoinj library's API offers a signMessage method of the ECKey class which returns a signature (r,s) as 65 bytes encoded as a Base64 string. The crunch of the encoding lies in the additional ...
0
votes
1answer
354 views

How to get the MPK using bitcoinj and how to generate the addresses using the MPK?

I am trying to get the MPK of a wallet using bitcoinj. Can I get the DeterministicSeed, which is the seed of the wallet and get the MnemonicCode of 12 words. But I can't get the MPK. As I can make it ...
0
votes
1answer
386 views

My altcoin bitcoinj fork is failing when trying to compile an Android wallet

I've been sent a bitcoinj fork which is meant to work for the android wallet I'm building. Unfortunately it seems to be causing a failure when tests are run during the wallet compile. I get the ...
0
votes
1answer
207 views

In BitcoinJ, do I need to run downloadBlockChain() again after adding a new key?

I added a Wallet instance to PeerGroup instance and executed downloadBlockChain() method. Now if I add a key(s) to that wallet, do I have to execute downloadBlockChain() again to get a current balance ...
0
votes
2answers
446 views

BitcoinJ encrypt message

I came across this in the source code for ECKey.java: "Represents an elliptic curve public and (optionally) private key, usable for digital signatures but not encryption." Why can you not encrypt ...
0
votes
1answer
125 views

BOP: Not authorized to receive from the temporary destination

I'm trying to run my own BOP (BitsOfProof) server and connect to it. I appear to be able to connect, but I am unable to execute any commands. I am connecting with the following: ...
0
votes
0answers
21 views

How to implement 2/2 multi-signature transactions with bitcoinj

I am using bitcoinj to implement a 2/2 multi-signature transaction. Now I want to use bitcoinj to generate a 2/2 multi-signature address and its corresponding Redeem Script through the public keys of ...
0
votes
0answers
66 views

How to communicate with Bitcoin core 0.17 using bitcoinj for hd wallet creation?

Hi am building one hobby project and i want to perform some operations in my own bitcoin core 0.17 by using bitcoinj lib. so is there any way by which we can use bitcoin-core 0.17,bitcoinj for hd ...
0
votes
0answers
44 views

Create P2SH address is not same as address saved on rpc node

I have a private key and trying to create P2SH address on testnet like my node created but they're not same. Please help me a bit, thanks so much. PrivateKey: ...
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
86 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- ...