Bitcoin Forum
June 14, 2024, 04:19:59 AM *
News: Voting for pizza day contest
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Listing balance and transaction info of other addresses  (Read 632 times)
battani (OP)
Newbie
*
Offline Offline

Activity: 25
Merit: 0



View Profile
August 07, 2013, 06:19:53 AM
 #1

I'm trying to retrieve info about transactions and balances of addresses on the network.

Code:
./bitcoind listtransactions '*'

Code:
./bitcoind getbalance '1127YKBDm8d2ZEvFwGz3e6NaWUr4LNQSBE'

(see http://blockexplorer.com/address/1127YKBDm8d2ZEvFwGz3e6NaWUr4LNQSBE)

But both commands above return empty. How can I get a list of transactions, say, of the last ten minutes? How can I get the balance of a specific address using its public key? Are these operations possible with bitcoin client? How do blockchain and others do it?
dudeami
Full Member
***
Offline Offline

Activity: 126
Merit: 100



View Profile
August 07, 2013, 07:22:05 AM
 #2

I'm trying to retrieve info about transactions and balances of addresses on the network.

Code:
./bitcoind listtransactions '*'

Code:
./bitcoind getbalance '1127YKBDm8d2ZEvFwGz3e6NaWUr4LNQSBE'

(see http://blockexplorer.com/address/1127YKBDm8d2ZEvFwGz3e6NaWUr4LNQSBE)

But both commands above return empty. How can I get a list of transactions, say, of the last ten minutes? How can I get the balance of a specific address using its public key? Are these operations possible with bitcoin client? How do blockchain and others do it?

Blockchain.info and others basically read the blocks and makes a database following the inputs/outputs.You need a block explorer for what you want.

If you want to lookup transactions that you know the txid of that are non-wallet related, this can be done, but isn't reliable for making something similar to what you want.

Put your heart on the line, it determines your fate.
BTC: 1DUDEAMiV54PFJFSe5fen3wr1e71unkaGj
battani (OP)
Newbie
*
Offline Offline

Activity: 25
Merit: 0



View Profile
August 07, 2013, 03:30:58 PM
 #3

Blockchain.info and others basically read the blocks and makes a database following the inputs/outputs.You need a block explorer for what you want.

Is there a way to read blocks that way? I'm curious as to how blockchain.info went about doing this from a technical perspective. I know I have the blocks stored in my bitcoin folder, but I don't know of an easy way to read them.
dudeami
Full Member
***
Offline Offline

Activity: 126
Merit: 100



View Profile
August 07, 2013, 07:46:20 PM
 #4

Blockchain.info and others basically read the blocks and makes a database following the inputs/outputs.You need a block explorer for what you want.

Is there a way to read blocks that way? I'm curious as to how blockchain.info went about doing this from a technical perspective. I know I have the blocks stored in my bitcoin folder, but I don't know of an easy way to read them.

The blocks all follow some kind of format, this I am not exactly sure of but reading them shouldn't be too hard. Maybe dig around here or throw up a bounty?

Put your heart on the line, it determines your fate.
BTC: 1DUDEAMiV54PFJFSe5fen3wr1e71unkaGj
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!