Bitcoin Forum

Bitcoin => Project Development => Topic started by: IamAGentleman on January 30, 2015, 01:58:03 AM



Title: Does listtransactions show all Transactions on the Bitcoin network?
Post by: IamAGentleman on January 30, 2015, 01:58:03 AM
If not, what is the best way to do it?


Title: Re: Does listtransactions show all Transactions on the Bitcoin network?
Post by: goregrind on January 30, 2015, 09:46:44 AM
listtransactions shows only the transactions associated with your wallet.
If you are running a full node you already have all transactions on your harddisk, you just need a blockchain parser.


Title: Re: Does listtransactions show all Transactions on the Bitcoin network?
Post by: devlux on January 31, 2015, 06:34:43 AM
If you need all transactions since the beginning of time, just write a script to use the JSON RPC API to and call "get best block" then increment through the blocks from 1 to n (best block).  For each block grab the transactions.

This will result in a HUGE dataset.  Most people don't need all this historical data.  They either want a live feed of current transactions or a list of unspent transactions.
BitcoinJ has an implementation in their sample code that can get you the later and stuff it into a popular RDBMS for later querying.
No idea what to do about the live feed short of opening up a port and listening to the network.


Title: Re: Does listtransactions show all Transactions on the Bitcoin network?
Post by: Neotox on January 31, 2015, 02:45:57 PM
it show the transaction of your wallet not the transaction of whole network
https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list
in case you want to check a specific  transaction you can check them on block explorer


Title: Re: Does listtransactions show all Transactions on the Bitcoin network?
Post by: brituspol on February 01, 2015, 09:52:23 PM
Traverse through block chain if you want to list all transactions.