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
12 views

Is there a way to extract the transaction amount for each transaction in each block with bitcoinJ?

Is there a way to do this as in the question above? The link to package is below: https://github.com/bitcoinj/bitcoinj
0
votes
1answer
59 views

How to create ECPoint from raw private key

How to create a bouncy castle ECPoint from a raw private key hex string? I am getting a private key using the 'dumpprivkey' RPC and removing the header byte and the 4 bytes of checksum + 1 byte of ...
1
vote
0answers
26 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
118 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
42 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
106 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
122 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 ...
2
votes
0answers
169 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 ...
3
votes
1answer
732 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
211 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 ...
2
votes
1answer
65 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
82 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
319 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
146 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
282 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
59 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
116 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
183 views

List of crypto currencies built with java?

Is there a list of crypto currencies that was built with Java?
2
votes
2answers
441 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
446 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
2k 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
126 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
207 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
85 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
293 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
436 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
630 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
1k 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
645 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
129 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
102 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
222 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
672 views

JAVA JSON-RPC for Litecoin

I am looking for Java Json-Rpc for Litecoin or any implementation for Litecoin
0
votes
1answer
377 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.
1
vote
1answer
957 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
598 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
300 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
149 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
783 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
108 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
956 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
219 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
278 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
72 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
58 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
293 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
663 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 ...
3
votes
1answer
731 views

Why the bitcoin address is not valid in any of the testNet faucet

I develop a simple Java/Maven/JSP app for bitcoin and generated the address 167Bqf3Mi3gnfhw5DhCfoYNTMxqANt3Zky I would like to send some money to this address from a bitcoin testnet faucet. I ...
0
votes
1answer
920 views

Bitfinex api v2 not returning candles

I am using bitfinex websockets v2 api in a Java application, to get the candles from a market. But I don't get any message back from the socket(not even an error). I wonder what I am doing wrong. Also ...