Author

Topic: Listing balance and transaction info of other addresses (Read 626 times)

legendary
Activity: 1498
Merit: 1000
Blockchain.info uses a custom bitcoind, that loads the blocks into a database, like mysql. You can read any transaction by starting bitcoind with "-txindex=1" or adding it to your bitcoin.conf file.
full member
Activity: 126
Merit: 100
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?
newbie
Activity: 25
Merit: 0
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.
full member
Activity: 126
Merit: 100
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.
newbie
Activity: 25
Merit: 0
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?
Jump to: