Bitcoin Forum
May 06, 2024, 10:46:19 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Updating a database when my wallet receives a payment.  (Read 1048 times)
jdeepee (OP)
Newbie
*
Offline Offline

Activity: 26
Merit: 0


View Profile
October 11, 2015, 07:28:52 PM
 #1

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!
Once a transaction has 6 confirmations, it is extremely unlikely that an attacker without at least 50% of the network's computation power would be able to reverse it.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
ca333
Hero Member
*****
Offline Offline

Activity: 520
Merit: 522


Developer - EthicHacker - BTC enthusiast


View Profile
October 11, 2015, 10:33:50 PM
 #2

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

this space is available (free) for humanitarian nonprofit organizations - please contact me
Pattart
Hero Member
*****
Offline Offline

Activity: 1190
Merit: 500



View Profile
October 12, 2015, 12:59:04 AM
 #3

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.
jdeepee (OP)
Newbie
*
Offline Offline

Activity: 26
Merit: 0


View Profile
October 12, 2015, 11:24:14 AM
 #4

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
jdeepee (OP)
Newbie
*
Offline Offline

Activity: 26
Merit: 0


View Profile
October 12, 2015, 11:32:19 AM
 #5

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?
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3388
Merit: 6587


Just writing some code


View Profile WWW
October 12, 2015, 11:56:05 AM
 #6

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.

jdeepee (OP)
Newbie
*
Offline Offline

Activity: 26
Merit: 0


View Profile
October 12, 2015, 12:00:49 PM
 #7

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.
ca333
Hero Member
*****
Offline Offline

Activity: 520
Merit: 522


Developer - EthicHacker - BTC enthusiast


View Profile
October 12, 2015, 02:23:42 PM
 #8

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


this space is available (free) for humanitarian nonprofit organizations - please contact me
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!