Bitcoin Forum
June 16, 2024, 04:30:18 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: blockchain.info: checking balance on addresses  (Read 561 times)
antagon (OP)
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
September 06, 2015, 04:04:38 AM
 #1

Hello,

in my application I have groups of dozens bitcoin addresses, each group is associated with a product. I am serializing all addresses in a group and then using blockchain.info API I am trying to get a sum of balances since the product was uploaded in my database.

So the request looks like this:

Code:
https://blockchain.info/multiaddr?active=1Archive1n2C579dMsAu3iC6tWzuQJz8dN|1dice8EMZmqKvrGE4Qc9bUFf9PX3xaYDp

Unfortunately I have a hard time wrapping my head around the JSON schema returned in the response. Somehow I need to go through all the transactions, filter out the ones which are younger than creation time of a product in my database, and find the balances on incoming transactions.

In my application I want to know if a price for a product was paid, the approach above is something I came up while reading around. Is this approach correct or I am missing something important?
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!