Bitcoin Forum
June 25, 2024, 08:39:26 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Economy / Web Wallets / blockchain.info: checking balance on addresses on: September 06, 2015, 04:04:38 AM
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]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!