Questions tagged [bitcoinj]

A Java library for processing Bitcoin, stores blockchain headers only

Filter by
Sorted by
Tagged with
0
votes
2answers
163 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
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
102 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
294 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, "...
0
votes
1answer
132 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-...
0
votes
1answer
128 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
136 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 ...
0
votes
1answer
387 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
1answer
135 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
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
1answer
292 views

Getting Hash160 of bitcoin address

How to get hash160 address in string using bitcoinj ,I tried the following code NetworkParameters params = TestNet3Params.get(); String ads = "n1XZMMm3ikh97Mr8JVnnahfugad2DRcVrB"; Address address = ...
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
31 views

End of Mining intention [duplicate]

If every block generated all 10 Minutes to validate a transaction, and the last bitcoin will generated in 2140. And there is no limitation of blocks.. Whats after 2140, because all miner have no ...
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 ...
0
votes
0answers
123 views

Extract all public keys from blockchain [duplicate]

I want to extract all public keys from the blockchain. Those will probably mostly be keys that have been used to sign transactions. How would I do this?
-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)....
-3
votes
1answer
181 views

How can I mine bitcoin faster? [closed]

I'm curios what kind of PC, I need to mine bitcoins. What OS system, what GPU, CPU, etc... my current specification are: CPU: Xeon e3-1230v3 GPU: GTX 780 RAM: 24gb OS: Windows 8.1(64bits) So what ...