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

Questions tagged [java]

Java is a programming language.

0
votes
0answers
32 views

How to use this nodejs script (by:Raghav Sood) that have been posted on the stackexchange

I'm new to javascript I'm trying to use this script from this post (made by Raghav Sood) : Bruteforce bitcoin address - I know the words + public address but not the order var bip39 = require('bip39'...
0
votes
0answers
4 views

Is there a java libray for the stratum mining protocol

I need my java program to communicate with a stratum proxy using the stratum mining protocol. Is there a java library somewhere that I can use for this or do I need to handle the web connection, ...
1
vote
0answers
23 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
70 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
29 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
0answers
27 views

How to Sign raw transaction without sending the key to the Bitcoin node server in JAVA

I have wallet on my mobile and am running bitcoind on another machine. I need to sign the transaction created through createrawtransaction on the mobile and do not want to send the key across ...
0
votes
1answer
80 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
1answer
81 views

Java mining solution

I am a beginner in mining algorithms and I have a general question regarding the mining using Java language. Does it make sense to use Java to develop for example ETHASH algorithm (or any other) and ...
1
vote
0answers
138 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 ...
2
votes
1answer
628 views

Bruteforce bitcoin address - I know the words + public address but not the order

I have a long list of 1million+ permutations of a 12 word BIP39 seed. How can I try them all on a bitcoin address? edit: I know the address and the 12 words but i don't know the order of the words
0
votes
1answer
159 views

How to use Signed Hash to Send Coins in bitcoinj

I am very new to bitcoinj library. I am using 0.14.7 version of bitcoinj and developing my own application in java. I have created a watch-only wallet by using the tPub of the Offline wallet. Upto ...
0
votes
0answers
54 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
66 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
256 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
1answer
103 views

Why does my implementation of hex to Base58check produce different results than the example?

Step 8 of this wiki page gives this hex value: 00010966776006953D5567439E5E39F86A0D273BEED61967F6 Step 9 converts it to this base58 string:16UwLL9Risc3QfPqBUvKofHmBQ7wMtjvM I'm trying to implement ...
0
votes
1answer
238 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
53 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
95 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 ...
1
vote
0answers
154 views

List of crypto currencies built with java?

Is there a list of crypto currencies that was built with Java?
1
vote
2answers
346 views

How to find ripple faucet coin for development

I'm developing an app with ripple. I need some faucet coin for ripple. How can I find it?
1
vote
2answers
375 views

How do i parse the zeroMQ messages in java?

This is the code that i have. I receive messages from the zeroMQ however a hashtx message for example looks like this --> "hashtx �����v����|(8d �!��v��&�-�k�". Any help in turning that into a ...
3
votes
1answer
1k views

Get Historical Bitcoin Prices on GDAX in CSV Format

I'm looking for minute by minute historical Bitcoin price data for the past year in format: time, open, high, low etc. I code in Java and I'm not familiar with other programming languages (such as ...
0
votes
2answers
125 views

Code example for Ardor bundler code snippet to filter transactions of a certain criteria to pay ZERO 0 ignis Fees?

I'm looking to write a custom Ardor bundler to only bundle transactions that have the following properties: Bundle transactions that are being sent to a specific account only. Bundle transactions ...
0
votes
1answer
197 views

GDAX Java Limit Order (HTTP Post)

Trying to send HTTP Post request to GDAX with auth. The 'GET' requests work fine and I'm unsure if I am passing the json params correctly as I keep getting Bad Request. private static JsonObject ...
1
vote
2answers
73 views

Unable to execute getwork logic in java

I was going through this post in stack exchange How can I code a Bitcoin JSON-RPC “getwork” request in Java? I tried to write a simple snippet for just the getwork json rpc. public static void ...
0
votes
1answer
257 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 ...
2
votes
1answer
380 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
543 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....
3
votes
3answers
928 views

Convert between String/Hex/Byte in Java for sha256 - wrong format?

I am trying to convert a bitcoin address and have the following code from here (Calculate Segwit address from public address, 2nd answer): Step1: $ printf 1L88S26C5oyjL1gkXsBeYwHHjvGvCcidr9 > adr....
1
vote
1answer
553 views

Java: Base58-encode String

I would like to Base58-encode this String: 56379c7bcd6b41188854e74169f844e8676cf8b8 My current Java code looks like this: String test9 = "56379c7bcd6b41188854e74169f844e8676cf8b8"; byte[...
0
votes
1answer
128 views

GDAX Java Bad Request

Trying to request private data on GDAX but keep getting bad request. Cannot figure out what I am doing wrong. Please help. private static JsonObject getAuthenticatedData() { try { ...
0
votes
1answer
97 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
211 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 ...
1
vote
1answer
589 views

JAVA JSON-RPC for Litecoin

I am looking for Java Json-Rpc for Litecoin or any implementation for Litecoin
0
votes
1answer
345 views

How to generate xPub Key from public key in java

I am working on a Bitcoin Wallet, i have public key but can't figure out how can i genrate xPub key from this.
0
votes
0answers
115 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()); ...
1
vote
1answer
842 views

Java: way to convert a 256-bit private key to WIF?

I have a question concerning Java and sha-256. I try to do these steps discribed here to create a WIF key: https://en.bitcoin.it/wiki/Wallet_import_format step: String string = "...
0
votes
0answers
524 views

How serialize, deserialize Transactions and how sign the deserialized Transaction on Bitcoinj?

Goog morning, i'm trying to create an application with a watching wallet, connected to the blockchain, and another application with a wallet, with private key, not connected to it, in order to ...
1
vote
0answers
284 views

Block chain receive payment api not working

I am building a little online app to accept bitcoin payments in my website. I have a blockchain.info wallet and I am following their Receive Payments Api, which can be visited here: http://blockchain....
1
vote
1answer
113 views

OP_ADD operation in bitcoin script for integers greater than 128 in java

I want to execute a simple series of instructions to implement a bitcoin script in java using bitcoinj API. All I am looking for is performing arithmetic operations for negative integers or integers ...
3
votes
1answer
703 views

How to develop with the Bitcoin cash?

I have a simple wallet created with the BitcoinJ. I can create the address, track the transactions, check account balance etc with the wallet. I would like to extend the wallet for the Bitcoin cash ...
1
vote
0answers
106 views

How return transaction hash from wallet to android app after payment?

Scenario: I have my android app where customers can pay by bitcoins. For this I created intent with uri like: bitcoin:[address]?amount=.. and using startActivityForResult it opens wallet with ...
0
votes
1answer
904 views

Wallet: how to generate public extended key?

As far as I understand, when I want to create an HD Wallet, do I need a private key that is derived into an extended public key? So, my question is, if I am coding a portfolio of bitcoin in java, how ...
0
votes
1answer
200 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
263 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
0answers
64 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
1answer
55 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
2answers
282 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
617 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() { ...
3
votes
2answers
1k views

The BTC shows 10^8 times more than what is received in the account

I work with Java/Maven/JSP app with BitcoinJ and I have transfer about 0.0048 BTC from a testnet faucet. However, after receiving, I see that my account has balance of 480000.00 BTC. This is the ...