Bitcoin Stack Exchange is a question and answer site for Bitcoin crypto-currency enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way to get a list of the latest transactions IDs? I know I can watch incoming transaction almost live on, but is there a way to download the last 10.000 transaction IDs?

Thanks for any hints!

share|improve this question
up vote 2 down vote accepted

Transactions have no intrinsic total order, which would be needed to have a chronological order. Two nodes might independently create transactions a and b and send them to a common nodes N and M. N receives first a and then b, while M receives first b and then a, which would you say is the correct order?

If there were a total order it would be possible to completely avoid the double spending problem as it would immediately be clear which is the winning transaction between two conflicting ones: just pick the first.

Going back to your original question: there are two separate sets of transactions you have to consider.

  • Committed transactions: transactions that have appeared in a block in the longest blockchain
  • Transactions in the memory pool: transactions that are yet to be confirmed

bitcoind provides access to both these sets:

  • Use getmemorypool to get the transactions in the memory pool
  • Use getinfo to get the height of the latest block, and then use getblockhash + getblock to iterate through the blocks in descending order and extract the transaction hashes. Stop when you have 10'000 transactions in total.
share|improve this answer
Thanks for pointing out that there can't be a real chronological order. I went with your suggestion and used bitcoind to fetch info and transactions from the latest blocks – worked great. – Max Min Jan 19 '13 at 17:49

Transactions don't have an accurate timestamp so their chronological ordering comes at the granularity of which block the transaction was included in.

Access to the "raw transactions" is available using the client's API, however it is not necessarily trivial to do so.


  • Armory provides some methods to pull transactions -- see the code in the extras directory.

  • Other methods might include libbitcoin
  • or perhaps the library with picocoin
  • or maybe ABE (blockchain explorer
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.