I am working bitcoind bitcoind -regtest
and wish to ship BTC to bcrt1qxhx5gq5gwaju2lh0pxnp7qpn4685cwvst4ql45
segwit handle.
Why listunspent returns empty checklist after sending somebtc to segwit handle?
Verify sender has sufficient bitcoin
➜ bin ./bitcoin-cli -regtest getbalance
20.17930334
Ship BTC
➜ bin ./bitcoin-cli -regtest sendtoaddress bcrt1qxhx5gq5gwaju2lh0pxnp7qpn4685cwvst4ql45 15.1
eb5e0047c3c37ad6f020e34febb52da276817196063ba2efc5860aa59f92cff4
Get TX
➜ bin ./bitcoin-cli -regtest gettransaction eb5e0047c3c37ad6f020e34febb52da276817196063ba2efc5860aa59f92cff4
{
"quantity": -15.10000000,
"price": -0.00044248,
"confirmations": 101,
"blockhash": "17e269809ab17fb41813f401fc8342a036c18509eb33504e8da87c82c9759e4f",
"blockheight": 2858,
"blockindex": 2,
"blocktime": 1681583966,
"txid": "eb5e0047c3c37ad6f020e34febb52da276817196063ba2efc5860aa59f92cff4",
"walletconflicts": [
],
"time": 1681583928,
"timereceived": 1681583928,
"bip125-replaceable": "no",
"particulars": [
{
"address": "bcrt1qxhx5gq5gwaju2lh0pxnp7qpn4685cwvst4ql45",
"category": "send",
"amount": -15.10000000,
"vout": 1,
"fee": -0.00044248,
"abandoned": false
}
],
"hex": "020000000001fd8c020628c3940819bf09b7d2383de51bf6dd8b03fb0ad58fdfc98d85bdf34aec96470000000000feffffff85abf943b973ab67bb3fc88ab922c36b3dd2c2ad61d84d5
Generate blocks for affirmation
➜ bin ./bitcoin-cli -regtest -generate 101
{
"handle": "bcrt1qkg54v3hqj4gpl9k0x8evlft3df2cuxetrr6e8l",
....
Get UTXOs for the handle
➜ bin ./bitcoin-cli -regtest listunspent 0 999999 "["bcrt1qxhx5gq5gwaju2lh0pxnp7qpn4685cwvst4ql45"]"
[
]
Why listunspent returns empty checklist, even. after transmission.
Finest