<p>No. <code>listunspent</code>, even if passed <code>0</code> as the minimum number of confirmations, will not list coins created in wallet transactions that are not part of the node's mempool at this time.</p>
<p><a href="https://github.com/bitcoin/bitcoin/blob/d1ae96755a0f9d7e12c3f6741c030d8ea6d0416f/src/wallet/spend.cpp#L232-L235" rel="nofollow noreferrer">Link</a> to the relevant code in the Bitcoin Core wallet.</p>

CC BY-SA 4.0
2023-06-21T07:42:01.913Z
2023-06-21T13:23:26.390Z
2023-06-21T13:23:26.390Z
Antoine Poinsot
<p>If I have an unconfirmed transaction with a UTXO that belongs to my Bitcoin Core wallet, and that transaction is evicted from my mempool, for example due to high fee-pressure, will <code>bitcoin-cli listunspent 0</code> still return the transaction?</p>
<p>I've tried to experiment in regtest mode. I restarted my node with -minrelaytxfee=&lt;higher than my tx&gt;. In this case I didn't get my tx in the response from <code>listunspent 0</code>, but I'm not sure this correctly mimics the scenario described above.</p>

<bitcoin-core><wallet><json-rpc><mempool><listunspent>
Does 'listunspent 0' return my non-mempool unconfirmed outputs?
Kalle Rosenbaum
# Does 'listunspent 0' return my non-mempool unconfirmed outputs?

(Asked by: username_0 on 2023-06-19)

If I have an unconfirmed transaction with a UTXO that belongs to my Bitcoin Core wallet, and that transaction is evicted from my mempool, for example due to high fee-pressure, will `bitcoin-cli listunspent 0` still return the transaction?

I've tried to experiment in regtest mode. I restarted my node with -minrelaytxfee=<higher than my tx>. In this case I didn't get my tx in the response from `listunspent 0`, but I'm not sure this correctly mimics the scenario described above.

**Tags:** bitcoin-core, wallet, json-rpc, mempool, listunspent


---

## 1 answers

### Answer by username_1 on 2023-06-21. Score: 3 | Accepted answer

No. `listunspent`, even if passed `0` as the minimum number of confirmations, will not list coins created in wallet transactions that are not part of the node's mempool at this time.

[Link](https://github.com/bitcoin/bitcoin/blob/d1ae96755a0f9d7e12c3f6741c030d8ea6d0416f/src/wallet/spend.cpp#L232-L235) to the relevant code in the Bitcoin Core wallet.


---

