Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: lzp729 on March 01, 2014, 09:56:36 PM



Title: How to list all transaction by a non-wallet address?
Post by: lzp729 on March 01, 2014, 09:56:36 PM
getrawtrasaction can get non-wallet transaction by hash, but how can I know all the transaction hashes by a  non-wallet address?


Title: Re: How to list all transaction by a non-wallet address?
Post by: DeathAndTaxes on March 01, 2014, 10:06:35 PM
Every single transaction?

Start at block zero.  Get a list of all transaction hashes for the block.  goto the next block and repeat.  Continue until you reach the current block.
I have no idea why you would want to do that though.  Maybe this is an xy problem?

http://meta.stackoverflow.com/questions/66377/what-is-the-xy-problem


Title: Re: How to list all transaction by a non-wallet address?
Post by: lzp729 on March 02, 2014, 11:08:59 AM
Every single transaction?

Start at block zero.  Get a list of all transaction hashes for the block.  goto the next block and repeat.  Continue until you reach the current block.
I have no idea why you would want to do that though.  Maybe this is an xy problem?

http://meta.stackoverflow.com/questions/66377/what-is-the-xy-problem

I am just curious about why blockexplore can track my address transaction so quickly for bitcoind have no API interface to do that.
With your explanation, they surely did some pre-process saving everything in their DB.


Title: Re: How to list all transaction by a non-wallet address?
Post by: DannyHamilton on March 02, 2014, 01:54:03 PM
they surely did some pre-process saving everything in their DB.

Correct.