bitcoin/bitcoin — pull request #4369 by crispweed (2014-06-19 13:17:18+00:00)
Title: Getrawtransactionsinblock

This adds a new 'getrawtransactionsinblock' rpc command.
The use case for this is essentially for any application that connects over RPC to process transactions in each new block, as they come in (for example, for a wallet application).
(I use this in the SwapBill client, but essentially just because the SwapBill client needs to maintain it's own wallet separately from the wallet in bitcoind or litecoind.)
This is only possible through the current RPC interface if txindex is turned on. But in fact a full transaction index should not be necessary for this, because we already know the hash of the block containing the transactions.
A second reason is then that it is also much more efficient to obtain all of the transactions in a block this way, rather than querying for the set of txids in a block and then making a whole bunch of calls to getrawtransaction.
See https://bitcointalk.org/index.php?topic=630370.0 for some more discussion!