Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

A Java library for processing Bitcoin, stores blockchain headers only

0
votes
0answers
3 views

I am looking for any implementation for Litecoin with bitcoinj

how to use bitcoinj for litecoin? any one give me that dependancy to me? I apologize if this has been asked, I have spent several hours trying to figure this out.
0
votes
0answers
26 views

DuplicateRelativeFileException

when I implements this two depencies in my project for btc implementation 'org.bitcoinj:bitcoinj-core:0.14.7' for bch implementation 'cash.bitcoinj:bitcoincashj-examples:0.14.5.2' this error will ...
0
votes
0answers
32 views

How do I get bitcoin cash wallet balance in bitcoinj?

I have using this method to get balance. kit.wallet().getBalance().toFriendlyString(); But it only gives me refreshed address balance. and it also 0 BTC.
0
votes
1answer
11 views

About multisig vault password and user seed

Honestly i dont remember my password and the user seed.its been two years now that i didnt open my account.. Is there any way to recover my btc vault password? Or user seed? I dont even know whats ...
0
votes
0answers
19 views

What if i forgot my vault password and the user seed..

Is there any posible way to retrieve? I still have access to my acount.. Ang the xpub keys..
1
vote
0answers
8 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
0answers
17 views

how to use bitcoinj for Litecoin wallet?

I have created a wallet app. In this wallet I have using bitcoinj liabrary. when I import ltc private key it creates btc address. How to restore ltc wallet by importing private key.
0
votes
1answer
24 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
votes
0answers
26 views

how to use bitcoinj for litecoin in android?

I have using bitcoinj but it downloads only bitcoin blockchain. What will be the change for litecoin
1
vote
2answers
16 views

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

In case of bitcoin there is bitcoinj. but in Litecoin what will I use?
0
votes
0answers
30 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
55 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
45 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
2answers
46 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....
0
votes
3answers
120 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
33 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 ...
0
votes
0answers
39 views

how to download blocks from a specified date using bitcoinj

I need to load the blocks for PostgresFullPronedBlock for the last six months or the last 1000 blocks. ` NetworkParameters params = TestNet3Params.get(); BlockStore store = new ...
1
vote
0answers
91 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
120 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 ...
0
votes
0answers
23 views

Getting old address while restoring

Long CreationTimeSeconds = Pref.getValue(activity, Config.PREF_CreationTimeSeconds, System.currentTimeMillis()); List<String> strlist = UtilsFunctions.getMnemoniWordlist(activity)...
0
votes
0answers
45 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
57 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 ...
1
vote
1answer
152 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
83 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 ...
0
votes
0answers
17 views

Transaction not broadcasting

I am using SendResult for transaction and I am adding the default reference fee 5000 satoshi still the transaction is not broadcasting
-1
votes
1answer
63 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
101 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
73 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
59 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
188 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
46 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
0answers
62 views

Build specific scriptPubKey

Help! I try to build specific scriptPubKey for output using bitcoinj library. It should look like this: 1 OP_DROP 54657374313131 5 OP_2DROP 3355185 OP_DROP OP_DUP OP_HASH160 ...
0
votes
0answers
103 views

Bitcoinj - How to create/generate wallet address like in trading platform

public static void createDashWallet(NetworkParameters params) throws BlockStoreException, IOException { WalletAppKit kit = new WalletAppKit(params, new File("."), "poporing"); kit.startAsync()...
0
votes
1answer
96 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
2answers
99 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
0answers
20 views

How to know the bytes of input using Bitcoinj [duplicate]

I am using Bitcoinj and it provides method to send transaction and set the fee but want to know what will be the fee for the particular transaction so it can be fast.So I came up using setFee/Kb.But I ...
0
votes
1answer
57 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
192 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
1answer
192 views

can i use one Mnemonic Code to create both(TestNet and MainNet) wallets

currently i am using bitcoinj library to create wallet for both Main-net and Test-net using Mnemonic code(Mnemonic Code is different for both), my question is can i create both Wallets(Test-net and ...
1
vote
1answer
284 views

How to create an offline wallet on Android only to sign transaction

I am new to bitcoins, I want to create an offline wallet on Android, to scan transaction QR code from online Desktop wallet, Sign that transaction with private key on my offline wallet. 1 Creating ...
1
vote
1answer
442 views

How to get compressed public key with ECKey

Here some java code. What i need to change to get compressed public address in getPublicAddress? import com.google.bitcoin.core.Address; import com.google.bitcoin.core.ECKey; import com.google....
0
votes
1answer
88 views

how to convert URI into Bip21

i am trying to convert the URI into BIP21 currently i am generating URI from bitcoinj library, but i want it to be on BIP21 Standard. i have read many articles but didn't found any solution
1
vote
1answer
187 views

Is there anything I can do to speed up the synchronization of litecoinj?

I am using litecoinj which is forked from bitcoinj but compared to bitcoinj, the wallet creation and block synching is slow when using litecoinj. So, I searched for a solution and found a post that ...
0
votes
0answers
194 views

RPC for Litecoin

Is there any RPC Java library using which I can call lite coin methods.For example Bitcoin has Bitcoinj, Bitcoind Json Rpc and many more.Please provide reference link.
0
votes
0answers
33 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
0answers
105 views

Bitcoinj fails with NegativeArraySizeException when iteration over the blocks

I'm iterating over the blocks of some block files generated by bitcoin-core. The following code works without any problem for the first 900 block files. Context.getOrCreate(MainNetParams.get()); ...
0
votes
1answer
142 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
2answers
337 views

Is there any way to listen to all transactions using bitcoind api?

I understand that using json-rpc to listen for all transactions is a bad idea due to performance, but bitcoinj is able to do it. In reality bitcoind is parsing all transactions under the hood when it ...
0
votes
2answers
86 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
0answers
131 views

How to sign an OP_RETURN transaction with BitcoinJ

I want to create and sign an OP_RETURN transaction and broadcasting to my Regtest network. I face up two problems: First: I have created successfully the transaction output but how to sign and ...