Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [java]

Java is a programming language.

Filter by
Sorted by
Tagged with
0
votes
1answer
44 views

Standalone Java Bitcoin Miner - Does it Exist?

I am a java developer, and currently am looking to create a standalone java class that will let people mine Bitcoin using CPU, but I have no idea if such already exists. I have found one for LiteCoin, ...
1
vote
2answers
941 views

JAVA JSON-RPC for Litecoin

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

Test Network Genesis Block

I am using BitcoinJ for my java application which fetches the test network's genesis block. I referred to the basics mentioned at JavaWorld and BitcoinJ's Google Code wiki. I am able to get it ...
1
vote
0answers
50 views

How to sign an Altcoin transaction manually with 2 inputs and 2 outputs

So i'm working with the altcoin denarius which has the following raw TX structure. This is a transaction I am try to sign: Original: ...
0
votes
1answer
43 views

Bitcoin Signature Verification

I am trying to implement the OP_CHECKSIG opcode of Bitcoin and verify whether a signature is valid or not. I have the signature that I recieve from the transaction data and the public key(the hex ...
2
votes
1answer
563 views

How to sign a transaction using BitcoinJ

I am having problem signing the transaction using BitcoinJ library without the Wallet instance, I only have the Transaction class instance and the ECKey in order to sign the transaction. Is there a ...
1
vote
1answer
480 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 ...
0
votes
1answer
255 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
1answer
256 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 ...
1
vote
1answer
260 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 ...
3
votes
1answer
965 views

Building Signed Bitcoin Transaction in Java

I have been attempting to build my own raw transaction generator in Java which I can then broadcast on the testnet network. The problem is when I attempt to broadcast the transaction it says there is ...
4
votes
1answer
267 views

How to build Merkle root from merkle branches?

Is there any help/tutorial on how to build the Merkle root from stratum data? The Slushpool's stratum protocol has an example of a mining job but it does not contain any Merkle branches and I don't ...
0
votes
1answer
40 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
0answers
80 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- ...
5
votes
1answer
3k views

How to sign raw transaction given a private key and SHA hash (in java)

I have followed the instructions here to build my own bitcoin transaction. Redeeming a raw transaction step by step example required Currently my code can create a transaction and compute the SHA ...
7
votes
8answers
6k views

How to communicate between Java and bitcoind?

I am having problems communicating between Java and bitcoind - every JSON RPC library I try has some issues. Can anyone provide a working implementation of even the most basic JSON RPC communication ...
0
votes
1answer
343 views

How to sign rawtransaction with private key

How to sign raw transaction with private key. this is my raw transaction : ...
3
votes
1answer
129 views

ECDSA signature with r value of 31?

occasionally on Android we are generating an ECDSA signature. This turns out to have a "r" length of 31 bytes. Is that valid? For reference here is a nice diagram outlining the ASN.1 structure of ...
1
vote
3answers
1k 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....
1
vote
1answer
89 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
387 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, ...
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 ...
2
votes
1answer
32 views

How to convert from Ardor time to Unix time?

What is the best approach to convert from Ardor time to Unix time?
0
votes
1answer
91 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: ...
2
votes
1answer
85 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
322 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 ...
0
votes
1answer
98 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 ...
1
vote
3answers
2k views

Get uncompressed public key from compressed form

A similar question has an answer in Python which links to the bitcointalk forum: How can I get the uncompressed public key from the compressed public key in openssl? https://bitcointalk.org/index.php?...
3
votes
1answer
1k 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 ...
0
votes
1answer
349 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? ...
3
votes
1answer
5k views

Generating an address from a private key in Java?

I'd like to write a function in Java that takes a private key and generates the address to use in a QR code. I'd like to make this , but I'm not very good with the hashing algorithms. I've checked ...
0
votes
1answer
173 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 ...
2
votes
0answers
238 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
338 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
1answer
512 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? ...
0
votes
1answer
688 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 ...
2
votes
1answer
673 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 ...
0
votes
1answer
348 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 ...
3
votes
1answer
1k 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
1
vote
0answers
363 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....
0
votes
1answer
1k 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 ...
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 ...
0
votes
2answers
139 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 ...
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
1answer
352 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
2answers
346 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....
1
vote
0answers
254 views

List of crypto currencies built with java?

Is there a list of crypto currencies that was built with Java?
2
votes
2answers
672 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
674 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
3answers
1k views

Check Bitcoin address balance from blockchain

I am a merchant that accepts bitcoins, and I'm building my own desktop client for receiving them in Java. When I receive a transaction, I would like to be able to see in my client how much bitcoin is ...