Why is listunspent giving empty results with a trusted balance?

2 replies 335 views
cipher_pixelSenior Member
Posts: 145 · Reputation: 915
#1Dec 29, 2023, 01:16 PM
Hey there, I set up this descriptor core wallet using the default settings, then I got a new address through getnewaddress. I sent some coins there and waited for more than 6 confirmations. My wallet shows a trusted balance, and when I check the address with getaddressinfo, it confirms it's in my wallet. But when I run listunspent, I get nothing. What’s the deal? Appreciate any help!
6 Reply Quote Share
gr3g.0rbitHero Member
Posts: 1025 · Reputation: 2646
#2Dec 29, 2023, 02:07 PM
I can't reproduce this in RegTest, Bitcoin Core v27.0 Steps done are: Create a descriptor wallet with default args -> receive BTC -> generate coins (using another wallet) it until it has 6 confirmations. getbalances shows it under "trusted" balance. listunspent command shows the UTXO. It's working as intended. The only way it happens at my end is when I purposely lock that specific unspent transaction output with lockunspent command. Can you try listlockunspent?
4 Reply Quote Share
cipher_pixelSenior Member
Posts: 145 · Reputation: 915
#3Dec 31, 2023, 09:28 PM
Thanks! It does shows up under listlockunspent. I did not use the command lockunspent directly myself though, but a tool I was using might have I guess... Will do more testing. Would be useful if the lock information was shown by the getbalances and getaddressinfo commands maybe.
3 Reply Quote Share

Related topics