Post
Topic
Board Bitcoin Technical Support
Topic OP
Empty output from listunspent with a trusted balance?
by
Jodmapht
on 30/05/2024, 02:11:38 UTC
Hi,

So I have this descriptor core wallet I created with default options, then I obtained an address with getnewaddress. I transferred coins to the address and waited over 6 confirmations. I see a trusted balance in the wallet, I see the address as belonging to the wallet with getaddressinfo, but listunspent returns an empty list. What is going on? Thanks!

Code:
/bin/bitcoin-cli -datadir=./var_testnet -rpccookiefile=./testnet3/.cookie -conf=../etc/bitcoin_testnet.conf -rpcport=18332 -rpcwallet=send getbalances
{
  "mine": {
    "trusted": 0.008*****,
    "untrusted_pending": 0.00000000,
    "immature": 0.00000000
  },
  ...
}

Code:
./bin/bitcoin-cli -datadir=./var_testnet -rpccookiefile=./testnet3/.cookie -conf=../etc/bitcoin_testnet.conf -rpcport=18332 -rpcwallet=send getaddressinfo tb1******************************************  {
  "address": "tb1*****************************************",
  "scriptPubKey": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "ismine": true,
  "solvable": true,
  "desc": "wpkh([xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "parent_desc": "wpkh([xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/0/*)#xxxxxxxxxxxxxx",
  "iswatchonly": false,
  "isscript": false,
  "iswitness": true,
  "witness_version": 0,
  "witness_program": "fxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "pubkey": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "ischange": false,
  "timestamp": 1716000000,
  "hdkeypath": "m/84h/1h/0h/0/0",
  "hdseedid": "0000000000000000000000000000000000000000",
  "hdmasterfingerprint": "37e012d6",
  "labels": [
    ""
  ]
}

Code:
./bin/bitcoin-cli -datadir=./var_testnet -rpccookiefile=./testnet3/.cookie -conf=../etc/bitcoin_testnet.conf -rpcport=18332 -rpcwallet=send listunspent 0
[
]