Bitcoin Forum

Bitcoin => Project Development => Topic started by: cryptoshop.ro on October 02, 2017, 08:48:53 AM



Title: Looking for a simple API for receiving Bitcoin
Post by: cryptoshop.ro on October 02, 2017, 08:48:53 AM
Hello,

The title is pretty self-explanatory. I am developing a project and I need a quick and easy way to receive bitcoin payments from my users.

I tried few options, but each of them has some downsides like: blockchain.info won't issue me an api key, coinbase requires a merchant account (I don't own a company, at least not yet), block.io is nice but the free plan offers only 100 addresses, etc.

Are there any free and simple solutions for my issue?

Thanks!


Title: Re: Looking for a simple API for receiving Bitcoin
Post by: Thekool1s on October 03, 2017, 05:23:16 AM
Well use blocktrial then, they have zero restrictions as far as i know, plus their api is 100% free to use, you can generate a receiving address for each transaction with a single simple api call, you can check the confirmations on transactions etc.. Also there is no waiting time to get an api key. You do have to install their sdk thou.


Title: Re: Looking for a simple API for receiving Bitcoin
Post by: mocacinno on October 03, 2017, 05:43:39 AM
Why don't you use a simple python script to derive addresses from an xpub?
Just create a new wallet with an SPV wallet like electrum or a ledger, export the xpub, move it to your server, then just derive a new address for each customer.

This way you won't rely on a thirth party, and you have full controll over everything that happens, while still having maximum security (since your xprv will never touch a webserver)


Title: Re: Looking for a simple API for receiving Bitcoin
Post by: cryptoshop.ro on October 03, 2017, 10:24:48 AM
Thank you for the replies  ;D

@Thekool1s
I will take a look at blocktrail, thanks.

@mocacinno
Oups! I didn't know this is possible. I must admit, this solution is brilliant, I'll definitely try it.


Title: Re: Looking for a simple API for receiving Bitcoin
Post by: freemanjackal on October 04, 2017, 03:14:34 AM
Why don't you use a simple python script to derive addresses from an xpub?
Just create a new wallet with an SPV wallet like electrum or a ledger, export the xpub, move it to your server, then just derive a new address for each customer.

This way you won't rely on a thirth party, and you have full controll over everything that happens, while still having maximum security (since your xprv will never touch a webserver)
i was going to suggest a node or light wallet, but this is best...


Title: Re: Looking for a simple API for receiving Bitcoin
Post by: CrazyCraig on October 04, 2017, 02:35:02 PM
Have you thought about standing up an instance with Bitcoin core and interacting directly with the RPC?

It may not be the most cost effective solution but it offers you the most control in the long run. You can still used derived keys for your cold storage etc.



Title: Re: Looking for a simple API for receiving Bitcoin
Post by: RGBKey on October 04, 2017, 05:01:34 PM
Have you thought about standing up an instance with Bitcoin core and interacting directly with the RPC?

It may not be the most cost effective solution but it offers you the most control in the long run. You can still used derived keys for your cold storage etc.


I agree. The whole point of Bitcoin is not having to rely on third-parties for your transaction data. Run a node yourself, and you'll be a lot more confident in your project, as well as not having to re-do everything if the API/service you use hits a rate cap/goes out of business, or if you need additional features in the future.