Function bitcoin::reverse_stream_transactions
source · pub async fn reverse_stream_transactions(
rpc: &Arc<dyn BitcoinCoreApi + Send + Sync>,
stop_height: u32
) -> Result<impl Stream<Item = Result<Transaction, Error>> + Unpin + '_, Error>
Expand description
Stream over transactions, starting with this in the mempool and continuing with
transactions from previous in-chain block. The stream ends after the block at
stop_height
has been returned.
Arguments:
rpc
- bitcoin rpcstop_height
- height of the last block the iterator will return transactions from