<p>Currently there is no way to get this information. However Bitcoin Core does track this information (at least the block height at the time the transaction entered its mempool) so it should be possible to make such a command.</p>

<p>Note that <code>listsinceblock</code> is a wallet RPC so it cannot also work on the mempool due to the separation between the node and wallet that we are trying to make.</p>

CC BY-SA 4.0
2019-06-24T10:08:21.350Z
thanks. is there any RPC call that works with the mempool apart from getting its size?
michnovka
CC BY-SA 4.0
2019-06-24T14:10:24.017Z
`getrawmempool` gives you the txids of every transaction currently in the mempool. `getmempoolentry` will give you information about that transaction in the mempool, including the block height at the time the transaction entered the mempool.
Ava Chow
CC BY-SA 4.0
2019-06-24T14:12:38.753Z
so if I wanted to make a wrapper around this, it looks like id have to iterate through ALL these transactions and filter by receiver address. This means 1 getrawmempool + N getmempoolentry where N can be quite huge, correct?
michnovka
CC BY-SA 4.0
2019-06-24T14:13:54.400Z
Yes. It wouldn't be very fast nor would it be atomic (i.e. you could get some information that is out of date)
Ava Chow
CC BY-SA 4.0
2019-06-24T01:33:12.710Z
2019-06-24T01:33:12.710Z
Ava Chow
<p>I am using <code>listsinceblock</code> RPC call to show me transactions relevant to my wallet addresses only. Absolutely useful feature, but I cannot figure out how to include also mempool transactions.</p>

<p>Is there something that would implement such functionality?</p>

<p>Thanks!</p>

<json-rpc><mempool>
How to listsinceblock mempool transactions?
michnovka
# How to listsinceblock mempool transactions?

(Asked by: username_0 on 2019-06-23)

I am using `listsinceblock` RPC call to show me transactions relevant to my wallet addresses only. Absolutely useful feature, but I cannot figure out how to include also mempool transactions.

Is there something that would implement such functionality?

Thanks!

**Tags:** json-rpc, mempool


---

## 1 answers

### Answer by username_1 on 2019-06-24. Score: 1 | Accepted answer

Currently there is no way to get this information. However Bitcoin Core does track this information (at least the block height at the time the transaction entered its mempool) so it should be possible to make such a command.

Note that `listsinceblock` is a wallet RPC so it cannot also work on the mempool due to the separation between the node and wallet that we are trying to make.

> **Comments:**
> **username_0**: thanks. is there any RPC call that works with the mempool apart from getting its size?  
> **username_1**: `getrawmempool` gives you the txids of every transaction currently in the mempool. `getmempoolentry` will give you information about that transaction in the mempool, including the block height at the time the transaction entered the mempool.  
> **username_0**: so if I wanted to make a wrapper around this, it looks like id have to iterate through ALL these transactions and filter by receiver address. This means 1 getrawmempool + N getmempoolentry where N can be quite huge, correct?  
> **username_1**: Yes. It wouldn't be very fast nor would it be atomic (i.e. you could get some information that is out of date)  

---

