Hi guys I want to create a simple linux cloud server which contains a database and some kind of script which updates the database when my BTC wallet receives a payment. It would be able to update the database with information such as the public key of the person who paid the BTC and the amount paid. Blockchain.info offers a service like this:
https://blockchain.info/api/api_receive However the only libraries available are in PHP and Java both of which are foreign languages to me. I am a Python developer. Does anyone have any suggestions on how to do this or whether I am thinking about this completely wrong.
Thanks!
Hello jdeepee,
i strongly recommend you to
NOT USE blockchain.info API for deposit/accounting stuff.
You should use a own local node (bitcoin daemon) on your project. You can of course use python
for communication with your wallet over rpc-calls.
more informations:
https://github.com/jgarzik/python-bitcoinrpchttps://en.bitcoin.it/wiki/API_reference_(JSON-RPC)#Pythonca333
If your project is experimental and no user funds are affected you can also use python to communicate
with the API of blockchain.info. This is not limited on php/Java.
For example in my project r-scan i use python and simply make http requests and then parse json data (API-response). see https://github.com/ca333/rng-scannerSorry for all the questions, but what is your opinion on CoinBase API? Is that okay to use. I know of a few websites using this.
Ask as much as possible. Its better to ask now, and to find a good solution instead of not asking and in the end risking users and your own time/money.
I RECOMMEND you to ALWAYS USE OWN bitcoin enviroment when handling other users coins. Means your own deamon on your own server. Every API from those online wallets, exchanges, websites, etc. are centralized. You have NO CONTROL over the priv-keys which hold all the money. Its always the website owner who control it and sign your txs.. so if you use API of one of those site, and this site get hacked, all the money is gone..
Try to set this up on your own btc-infrastructure if other users coin are affected. If you need assistance for setup, server-securement (fail2ban, nginx, etc.), btcdaemon config, etc.
ask us. We will help you!
If you only need the btc payment-processing (so you want to accept btc for a service/product/etc) then maybe have a look on bitpay api if own btc-infrastructure is no option for you. But AGAIN, i always RECOMMEND OWN node in own infrastructureca333