Author

Topic: Getting list of all transactions and addresses using a daemon (Read 1104 times)

legendary
Activity: 2394
Merit: 1216
The revolution will be digital
Yea I was thinking that I would have to use a database of some sort. I think I'm gonna do a loop to index all of the blocks to get all the txs in the database. I'd have to increase the block height every time it is looped ($a++) sort of thing. Is there any way to get info about an address not in my wallet? My txindex is set to 1.

I think the best bet is to use a flat file, but managing that would require a lot of coding.
legendary
Activity: 2394
Merit: 1216
The revolution will be digital
Why people like to count funds in pockets they do not own Huh

Because other people's interest in that data fills up their pocket.
legendary
Activity: 1260
Merit: 1019
Why people like to count funds in pockets they do not own Huh
hero member
Activity: 588
Merit: 500
Get ready for PrimeDice Sig Campaign!
Yea I was thinking that I would have to use a database of some sort. I think I'm gonna do a loop to index all of the blocks to get all the txs in the database. I'd have to increase the block height every time it is looped ($a++) sort of thing. Is there any way to get info about an address not in my wallet? My txindex is set to 1.
kjj
legendary
Activity: 1302
Merit: 1026
Ugh.

Start by parsing the block files to quickly generate your database.  Keep it current with -blocknotify.  To see unconfirmed transactions, either interface with a real node using the p2p protocol, or poll the mempool and iterate the list asking for transaction details.
hero member
Activity: 588
Merit: 500
Get ready for PrimeDice Sig Campaign!
Hey, I am doing some cryptocurrency programming, more specifically I am building a block explorer, and I am wondering how would I list all the latest transactions on the network, and how would I get all addresses with a balance greater than 0 (I am trying to make a rich list). I am not necessarily using bitcoin (I am using other altcoins) but the daemon calls are all the same. How would I do this?
Jump to: