Bitcoin Forum
June 23, 2024, 12:40:03 PM *
News: Voting for pizza day contest
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Using Blockchain.info to get realtime updates  (Read 705 times)
Chillance (OP)
Sr. Member
****
Offline Offline

Activity: 310
Merit: 250


View Profile
August 13, 2014, 02:28:17 AM
 #1

Hi,

I'm working on a bitcoin site, but its getting delayed because of external problems.

I'm creating new addresses using getnewaddress, however, blockchain's "receive API" creates yet another address which is tracked but doesn't help me, as I already created a new address. I do this way because then I can track what addresses belongs to which user, as they are linked to the same account, and I'm not relying on any other service. Actually, this is how it works in bitcoind.

getnewaddress -> 1bitcoinaddress1

vs

/api/receive -> 1bitcoinaddress2 (which apparently points to 1bitcoinaddress1)

So, according to support, I should use https://blockchain.info/api/api_websocket . But, to get balance and amount of confirmations, I should use https://blockchain.info/api/blockchain_api .

I know there are some other sites as mentioned here https://bitcointalk.org/index.php?topic=575651.msg7361747#msg7361747 but I'm trying to work it out properly using blockchain.info, as they do have websocket and all other good stuff. I asked support, but they said I should post here and see what you guys have done "the best way".

Anyway, what I'm wondering here is, have anyone here got any experience here, and can tell me how I can get the total balance, and confirmations for addresses the easiest way using blockchain.info when a new transaction accurs?  I basically just want to avoid polling, and get some kind of notification of a transaction, and then be able to check the balance and confirm by some amount of confirmations that the transaction is OK.

Thanks,
Chillance

p2pbucks
Hero Member
*****
Offline Offline

Activity: 642
Merit: 500


Evolution is the only way to survive


View Profile
August 13, 2014, 03:18:12 AM
 #2

hey ,
I think you should try bitcoind json rpc . https://en.bitcoin.it/wiki/API_reference_(JSON-RPC)
Blockchain.info API is not suit for independent websites applications , you'd better dev your own model based on bitcoind.
btw :  Blockchain.info callbacks sometimes proccess two times , it's very unstable by my experience.
Chillance (OP)
Sr. Member
****
Offline Offline

Activity: 310
Merit: 250


View Profile
August 13, 2014, 06:21:53 AM
Last edit: August 13, 2014, 08:02:58 AM by Chillance
 #3

Hey, yea, that is what I'm actually using to create the the new address for example. What I'm looking for now is a smart and fast way to be notified about new transactions. So I know when users send BTC for example. Balance and amount of confirmations should to be enough I think...
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!