Author

Topic: latest transactions (Read 623 times)

legendary
Activity: 2058
Merit: 1431
June 14, 2013, 09:43:35 PM
#4


yes, getrawmempool lists the transactions in bitcoind's memory, - but that
still doesnt help - the transactions are in alphabetical order not as they are
received --

how can i get bitcoind to give them to me, in the order it got them ?
That is not supported by bitcoind. You can do one of the following:

  • poll the daemon frequently and use a delta filter with a database to find "new" transactions
  • modify bitcoind to run a command when it receives a transaction. good ideas are: a) hook CTxMemPool::accept() or b) modify walletnotify rpc command to alert for all transactions, not just your own
  • steal procure data from blockchain.info

tl;dr there's no ez solution, you'll have to get your hands dirty.
newbie
Activity: 24
Merit: 0
June 14, 2013, 03:33:18 PM
#3


yes, getrawmempool lists the transactions in bitcoind's memory, - but that
still doesnt help - the transactions are in alphabetical order not as they are
received --

how can i get bitcoind to give them to me, in the order it got them ?

legendary
Activity: 2058
Merit: 1431
newbie
Activity: 24
Merit: 0
June 14, 2013, 02:48:05 PM
#1

I'm trying to write a program to display the latest transactions on the bitcoin
network as they happen..

I call getinfo to get the block count , and then I call getblockhash with this
number, and then call getblock with the hash..

However, I can only get information on completed blocks.

How do services like https://blockchain.info/ get the latest transactions
for incomplete blocks ?
Jump to: