Author

Topic: Updating a database when my wallet receives a payment. (Read 1075 times)

hero member
Activity: 521
Merit: 522
Developer - EthicHacker - BTC enthusiast
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-bitcoinrpc
https://en.bitcoin.it/wiki/API_reference_(JSON-RPC)#Python

ca333



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-scanner


Sorry 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 infrastructure


ca333

newbie
Activity: 26
Merit: 0
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-bitcoinrpc
https://en.bitcoin.it/wiki/API_reference_(JSON-RPC)#Python

ca333



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-scanner


Sorry 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.
staff
Activity: 3458
Merit: 6793
Just writing some code
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-bitcoinrpc
https://en.bitcoin.it/wiki/API_reference_(JSON-RPC)#Python

ca333



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-scanner


If I want to send bitcoins to multiple wallets is it recommended I do this through the Bitcoin daemon as-well or can I just use blockchain.info's API?
You should really just do everything through bitcoin, it is pretty much the same functionality.
newbie
Activity: 26
Merit: 0
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-bitcoinrpc
https://en.bitcoin.it/wiki/API_reference_(JSON-RPC)#Python

ca333



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-scanner


If I want to send bitcoins to multiple wallets is it recommended I do this through the Bitcoin daemon as-well or can I just use blockchain.info's API?
newbie
Activity: 26
Merit: 0
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-bitcoinrpc
https://en.bitcoin.it/wiki/API_reference_(JSON-RPC)#Python

ca333



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-scanner


Okay great thanks for the advice I spent some time in the Bitcoin daemon so it shouldn't be too hard. I will let you know if I run into any problems! Smiley
hero member
Activity: 1190
Merit: 500
as ca333 said above, you should be using your own bitcoind if it is something for production and consumer use. Blockchain.info has a history of screwing things up and many times their API can fail. You shouldn't use them for anything big and important.
hero member
Activity: 521
Merit: 522
Developer - EthicHacker - BTC enthusiast
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-bitcoinrpc
https://en.bitcoin.it/wiki/API_reference_(JSON-RPC)#Python

ca333



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-scanner
newbie
Activity: 26
Merit: 0
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!
Jump to: