Title: moving away from Blockchain (long) Post by: paolgiacometti on August 23, 2016, 08:42:20 AM Dear all, sorry for my non-native English.
I post here asking for suggestions being that google and stackoverflow did not help me clarifying my doubts. I had a web site where I can send and receive Bitcoins. To archive this I used Blockchain API to process notifications of received Bitcoins and the same to process sending Bitcoin to other addresses. Due to the fact that Blockchain forced me to change my calling method because they changed the API using node.js I was considering to move away from them. However I found lots of issues. The Blockchain wallet can be exported to multibit-hd and the source code is available but due to my limit knowledge of Java I am not able do replicate the same use case flow. Also, due to the fact that multibit-hd does not run as a service I cannot use it on a vps server being that in case of restart the program does not start automatically. So I tried to use Bitcoinj directly to process payments the software performs the following steps:
I had also a problem because on the testnet the software works but when I move to production network the program seems to start downloading all the Blockchain. Being that I am much better at C# I also tried to use NBitcoin but again with no success. So I Google a while and found that it is possible to run Bitcoin core and use rpc call to process payment but Bitcoin-core need first to download and validate all the Blockchain that is nearly 91GB. So my question is this:
Thanks for any help Title: Re: moving away from Blockchain (long) Post by: achow101 on August 23, 2016, 01:39:16 PM Take a look at Electrum. It is an SPV wallet so it is very lightweight and doesn't need the entire blockchain. (It will need all of the block headers, which is what BitcoinJ was downloading, but those are very small and light compared to actual blocks.) You can communicate with it using JSON-RPC. The blockchain.info master private key should also be able to be imported into the wallet since both use BIP32 HD wallets.
Check out the documentation for interacting with it for a service at http://docs.electrum.org/en/latest/merchant.html |