Java is a programming language.

learn more… | top users | synonyms

0
votes
0answers
16 views

Bitcoin ZeroMQ and Scala application

I'm trying to connect to Bitcoin's ZeroMQ queue, having no success and don't even know where my problem is. Here is what I did so far on my Ubuntu 14.04: Installed Bitcoin via sudo apt-get install ...
1
vote
1answer
58 views

ECKey.ECDSASignature creation

I have my ECKey key. In order to create an ECDSASignature object with BitcoinJ, we have to call ECDSASignature mySignature = key.sign(Sha256Hash input). Is the Sha256Hash input my message? Or is it ...
0
votes
0answers
28 views

Library ZMQ to Java does not work

I am trying to connect to a bitcoin node using the ZMQ library for Java. the problem is that when I try to receive a response the code remains frozen. Returns nothing. This is my code: public class ...
0
votes
1answer
14 views

International Bitcoin Payment Platform [duplicate]

I need to integrate bitcoins payments in my web application. I was about to use Stripe platform for accepting bitcoins (works exactly the same than for accepting credit cards) but I realized they ...
0
votes
0answers
22 views

Creating the Pay to PubkeyHash Transaction with bitcoinj

I want to implement the Pay to PubkeyHash Transaction without connecting to a network(for example testnet). I want to create it, to run locally. I don't know how to create my Signature from my ...
0
votes
0answers
31 views

Trying to add the coinbase exchange java api to my eclipse project

I'm trying to add the coinbase exchange java api to my eclipse project. At first I tried to import it as a project but got a error saying no project found. I did not see any options under import to ...
2
votes
1answer
79 views

Bitcoin transactions reserve more coins than needed

I have a JavaWebApp wich uses bitcoinj 0.13.2 for sending bitcoins from a wallet to a particular address in a TimerTask. When the job starts, every minute I send 10000 satoshis to the address. The fee ...
1
vote
0answers
70 views

Why I can't see the balance increasing in my wallet?

I wrote this function using bitcoinJ public Wallet getWallet(ECKey ecKey) { Wallet wallet = walletAppKit.wallet(); wallet.importKey(ecKey); wallet.addEventListener(new ...
2
votes
1answer
109 views

How to synchronize with the bitcoin blockchain via bitcoinJ

I'am writing my very first application using bitcoinJ api and I got a bit stuck. Maybe somebody can tell me what I am missing. My practice app wants to write a sample contract in the bitcoin ...
-1
votes
1answer
89 views

Wouldn't it be better to have used Java for Bitcoin Core? Is there a good cryptocurrency that went with Java from scratch? [closed]

Java is sooooooo much easier than C++. Wondering why in 2008 people decided to go with C++ instead. Was it because Satoshi only knew C++? And to compliment this question, is there a noticeable ...
0
votes
0answers
69 views

How to mine using bitcoinJ?

I'm using bitcoinJ to create a custom wallet that works in Java, but I don't have any idea to mining using bitcoinJ. Anyone have any idea? Thansk for advice!!
1
vote
0answers
82 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 ...
0
votes
1answer
53 views

Xemian Xchange Api for Java, returning a default of 100 market orders

For sometime I am using this java API http://xeiam.com/xchange/ for building bitcoin trading robots. Today I got a bit stuck and I wanted to see if somebody had the same issue before. I call the ...
2
votes
2answers
105 views

Accept payments on someone else's behalf without being able to spend them

TL;DR I wish to store some sort of key in my application for each vendor account that allows for my application to generate a receiving address for clients to make payments to. I am writing some ...
0
votes
2answers
1k views

Java code for Bitcoin Mining?

I am a student and doing research on Bitcoin. I wanted to know how mining is done but I wanted it see the some basic java code. Can some one provide me with resources? I would appreciate if some one ...
3
votes
1answer
348 views

Generating private keys in Java

I'm looking for a way to generate private keys in Java. I'd like to make this a standalone program, so I'd rather not use a library like bitcoinj. From my research I've only seen people recommend ...
0
votes
0answers
580 views

blockchain.info websocket: Error code = 1006, Unexpected end of stream

I am using javax.websockets to have a webSocket connection with Blockchain.info, except that it closes down after random intervals, and I can see the close reason as: 'Unexpected end of stream', ...
0
votes
1answer
163 views

NoClassDefFoundError when using Java Coinbase API

I've simply downloaded an API .jar file of a Coinbase. I've created a project dynamic web project. I added successfully into a reference library that API. Here is my simple program: import ...
0
votes
1answer
461 views

java.lang.NoClassDefFoundError: org/spongycastle/util/encoders/Hex in Java when dealing with Bitcoin addresses

I have a private key bigInt of type bigInteger and I would like to generate the address corresponding to this private key. I implemented the following function public String get_address () { Address ...
1
vote
1answer
75 views

Library for trading on major exchanges

Is there a library which exposes order-book and trading functionality of major exchanges like BTC-e, Bitfinex, Cryptsy etc. ? I know these site have their own API but I wanted to re-use the code, if ...
0
votes
1answer
49 views

Can I create a public address for Bitcoin without the private address appearing on the screen?

Is there JavaScript which will do this? I would generate a 256 bit password using 99 dice throws, enter it into JavaScript on an offline computer (like using bitaddress.org) and get an address to ...
1
vote
0answers
117 views

bitcoinj, unknown confidence level

I've got a bitcoin address A with its relative encrypted key K stored in a persistence storage. I am launching bitcoinj through the WalletAppKit class and calling awaitRunning to wait for the ...
0
votes
1answer
383 views

http post via java to bitcoind does not work

I am using Ubuntu Server 12.04. My *.conf file: ... # Enable RPC server=1 # Uncomment to allow localhost to use RPC rpcallowip=127.0.0.1 # RPC information # THIS MUST BE CHANGED FOR YOUR SECURITY ...
0
votes
4answers
1k views

MultiBit won't open, says “Java not installed”

My MultiBit wallet won't open, because "Java is not installed", though I have Java 8, 7u51, and 6u49 installed... Which version of Java should I have installed?
1
vote
0answers
104 views

How to use Bitcoinj to authenticate signed messages?

I'd like to authenticate from java code on a website that makes use of javascript/ajax authentication like below: var key = new Bitcoin.ECKey(Crypto.util.hexToBytes(SHA256(password))); var ...
1
vote
0answers
70 views

BitcoinJ without PeerNetwork

I am writing a system which generates wallets on a per user basis. It must be capable to receive and send payments. So I have to keep the private keys encrypted on the system. Generating the ...
2
votes
1answer
868 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 ...
2
votes
1answer
339 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 ...
1
vote
1answer
235 views

Get address balance in Java

I'm a merchant that is currently developing program that I will use for receiving transactions for my business. I would like my program to be able to check how much Bitcoin the address sending to me ...
0
votes
0answers
103 views

Verifying mrkl_root from two children nodes in JAVA

Let's use the following block for a reference: http://blockexplorer.com/rawblock/00000000000000001e8d6829a8a21adc5d38d0a473b144b6765798e61f98bd1d According to my understanding (correct if wrong), I ...
3
votes
1answer
603 views

Creating Base58 public key & private key in Java?

How can I create a base58 private key and public key in Java? I'm pretty familiar with Java and I have the bitcoinj-minimal code, but it's not clear to me how I can generate a base58 key pair from the ...
0
votes
1answer
111 views

BOP: Not authorized to receive from the temporary destination

I'm trying to run my own BOP (BitsOfProof) server and connect to it. I appear to be able to connect, but I am unable to execute any commands. I am connecting with the following: ...
2
votes
1answer
344 views

Does the MultiBit linux jar file run in windows?

A windows system has a standalone java and is not recognized by the installer. A jar file can be run on the command line. Is the MultiBit linux jar and the windows installed one the same?
-1
votes
1answer
85 views

How safe is it for me to install Java on OS X 10.8 to use Bitcoin [closed]

I want to use the Bitcoin client Multibit, but to do so I will need to install Java which over the past six months I've only heard bad things about. So my question is: how safe is it for me to ...
5
votes
1answer
763 views

How to run Bitcoinj on Heroku?

Does anyone know where I might find a tutorial on how to deploy a bitcoinj server (essentially a replica of a bitcoind server with an rpc API) on Heroku?
4
votes
0answers
326 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 BitCoins Google Code wiki. I am able to get it running ...
3
votes
2answers
144 views

BitCoinJ for Cloud based application

I am currently working on a cloud based project that will be accepting payments using bitcoins. I intend to use BitCoinJ to handle the payment. Unfortunately the only help I am able to get is from the ...
4
votes
2answers
2k views

How do I create an offline transaction in java to broadcast via blockchain.info?

Blockchain.info has a PushTX API. How do I create & sign a raw transaction in Java for use in this API? Should I use bitcoinj? Are there any code samples?
5
votes
6answers
2k 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 ...
2
votes
1answer
698 views

Bitcoind returning “Invalid JSON-RPC 2.0 response”?

I am starting to use a basic implementation of Bitcoin JSON RPC (dzhuvinov library), and I am getting a strange result. Here is my code: public static void main(String[] args) { URL serverURL = ...
7
votes
3answers
2k views

Can I send message inside the transactions script?

I would like to send transactions with messages as described in the wiki. In Transaction with slightly changed script is never relayed, someone answered that non-standard transactions are not relaid ...
4
votes
1answer
256 views

Load a transaction with bitcoinj

I am developing simple Bitcoin application using the bitcoinj library: The user enters the hash of a transaction and my application should return detailed information about that transaction. How can ...
5
votes
1answer
520 views

How do I generate offline transactions in Java?

I'd like to develop a Java binding to the Stratum Overlay Network (a server for thin clients). This requires signing on offline transactions. Can I directly use bitcoinj's API to do this? Can I ...
9
votes
2answers
2k views

Java library for Bitcoin Client Application

are there Java libraries for Bitcoin available to develop client applications?