Questions tagged [bitcoinj]

A Java library for processing Bitcoin, stores blockchain headers only

Filter by
Sorted by
Tagged with
0
votes
0answers
36 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
28 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
1answer
19 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
30 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
0answers
47 views

spend founds from p2wsh address,non-mandatory-script-verify-flag (Signature must be zero for failed CHECK(MULTI)SIG operation) (code 64)

i want spent coin from p2wsh address on btc testnet3 network, i use bitcoinj 0.15.2 build transaction and sign it, use 2/3 multiSig when i send raw transaction by bitcoin core 0.17.0 command line by ...
0
votes
0answers
38 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
74 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
2answers
145 views

how to get the sender's address in bitcoinj

I'm trying to modify the simple wallettemplate to get the sender's address in the transaction list. However since TransactionInput.getFromAddress() doesn't exist now and getConnectedOutput()....
0
votes
1answer
34 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
79 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 ...
1
vote
1answer
88 views

Errors when building/sending multisig transactions

Going by the example here: https://bitcoinj.github.io/working-with-contracts I believe I've done everything correctly. Yet my program fails either to propagate correctly or because of a tx error and ...
1
vote
1answer
214 views

bitcoinj java library not decoding input addresses for some transactions

I'm trying to "extract" sender's addresses from OP_RETURN Bitcoin transactions, but my code is not working properly. getWalletAddressOfSender(final Transaction tx) public static Address ...
0
votes
1answer
49 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 ...
1
vote
1answer
513 views

How do I sign and send a raw transaction using BitcoinJ?

Transaction transaction = new Transaction(params); // 遍历未花费列表,组装合适的item double sum = 0; String address = null; List<Unspent> unspents = new ArrayList<>(); Map<...
1
vote
0answers
31 views

What to pass in Transaction Input using Bitcoinj library

URGENT - Need help with setting up Transaction Input and Output objects Transaction rawTransaction = new Transaction(params); txnAmount = Coin.valueOf(50000000); rawTransaction.addOutput(txnAmount, ...
1
vote
0answers
44 views

library for light-weight wallet : btcsuite or BitcoinJ [closed]

Do btcsuite + Neutrino(Lightning-lab) together provide sufficient foundation for light client capable to service onchain transactions (not multisig & not related to Payment Channels)? Or is it ...
1
vote
1answer
128 views

Changed address

My address has changed but I'm showing 0.00mbtc. when I lookup the information on Blockchain it confirms 0.00 but then States the address has yet to be used on the network. I'm confused, please help.
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....
1
vote
0answers
46 views

Bitcoinj Spend from a address directly without wallet

I am stuck trying to send coins from arbitary privateKey in bitcoinj. How can I make the following function work without using the Kit or Wallet classes? @Override public String transferCoin( ECKey ...
1
vote
1answer
383 views

Bitcoinj wallet can't receive coins in Testnet3

I have a problem with bitcoinj. I have created a wallet and than trying to send coins to it in Testnet3 using this faucet: https://coinfaucet.eu/en/btc-testnet/ Coins sended, transaction confirmed, ...
0
votes
1answer
144 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
95 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
117 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
68 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. ...
2
votes
1answer
349 views

Get private-keys from wallet using bitcoinj

I'm using bitcoinj for transferring bitcoin. Now I want to export private key of my wallet. So how can I get the private key from bitcoinj?
1
vote
0answers
41 views

Send funds from a specific address with bitcoinj

I have two addresses in my wallet. I use one of them as a buffer and clients can receive money only from that address. How can I send money from a specific address?
0
votes
1answer
162 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
249 views

Does exist some library for decode/encode raw transaction?

I want to parse raw transaction into JSON then change some values and encode back to hex. JSON like this: { "addresses": [ "346vcZZ6QV4nr68fybMEuA7qxxQeyKWoPS" ], "block_height": -1, "...
1
vote
1answer
40 views

Trying to run the Main file of the wallet template from bitcoinj but JavaFX not found

Trying to run the Main file of the wallet template from bitcoinj but JavaFX not found. When I run the main file of the wallettemplate I get multiple errors of javafx packages not found. When I try to ...
0
votes
1answer
118 views

Sign Bitcoin transaction with several inputs using bitcoinj. Broadcasting of transaction failed

Good day! I'm working with low level API to make tx and sign it offline. But after all preparations I try to broadcast it and than i get an error from network: 16: mandatory-script-verify-flag-...
1
vote
2answers
127 views

Is there any RPC Java library using which I can call lite coin methods? [closed]

In case of bitcoin there is bitcoinj. but in Litecoin what will I use?
0
votes
1answer
121 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
305 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
170 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 ...
1
vote
2answers
218 views

BitcoinJ how to understand receive Address?

I need to receive bitcoins from the customers, and then add to theirs virtual account some credits. I use BitcoinJ wallet and I want to give each customer the unique Address created by walletAppKit....
1
vote
3answers
496 views

How to derive segwit addresses from an extended public key?

I tried to use the following code: DeterministicKey key = DeterministicKey.deserializeB58(null , "xpub...", MAINNET); DeterministicHierarchy hierarchy = new DeterministicHierarchy(key) ; ...
1
vote
1answer
79 views

Does wallet support multi account/user?

Does bitcoinj wallet support multiple accounts/users? It seems BIP44 is not supported and found multiple threads indicating lack of support. Just wanna get a definitely answer. If not yet, any plan ...
2
votes
0answers
235 views

Broadcasting signed transaction from Watching wallet using bitcoinj

I am working with watching wallet and Offline wallet using bitcoinj, I created Watching Wallet using tpub key of Offline Wallet I am receiving payment on watching wallet Fine, now I want to ...
1
vote
1answer
343 views

What is the difference between bitcoin core vs bitcoinj vs bitcoind vs bitcoinqt?

What is the difference between bitcoin-core vs bitcoinj vs bitcoind vs bitcoin-tx vs bitcoin-cli vs bitcoinqt? There are many github repo with different names around bitcoin. Can someone really help ...
2
votes
1answer
83 views

Handling fees and setting them

Im trying to get the estimation of how much the fees will be when a final amount is decided on. I would say im getting familiar with bitcoinj but not completely with java so im still learning how to ...
0
votes
1answer
133 views

connect watching wallet with blockchain

i have created watch wallet Wallet wallet = Wallet.fromWatchingKeyB58(params, tPub, DeterministicHierarchy.BIP32_STANDARDISATION_TIME_SECS); How can i link this with block chain i am using ...
2
votes
1answer
489 views

how to create Watching Address from available xPub key

Watch-only wallet can only receive payments but not spend the available coins. I am using bitcoinj (in Java). Can anyone please tell me that How to create watching addresses from available xPub key? ...
1
vote
0answers
153 views

how to create unsigned transaction by hot wallet which is retrieved from watchingKey

via Bitcoinj , i am trying to create hot wallet as front used to get balance , create unsigned transaction (corresponding , i have cold wallet forever be offline used to sign transaction only) My ...
-1
votes
1answer
113 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)....
0
votes
1answer
359 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
1answer
212 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
1answer
134 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
662 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
87 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
222 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 ...