Home Bitcoin bitcoin core – Listunspent doesn’t return all utxos

bitcoin core – Listunspent doesn’t return all utxos

0
bitcoin core – Listunspent doesn’t return all utxos

[ad_1]

I’m utilizing Bitcoin Core to get all UTXOs for watchonly imported addresses. The technique is the next:

  1. I load a brand new pockets

    await consumer.execute("loadwallet", ["testwallet"])
    
  2. I import a number of addresses within the loaded pockets

    import csv
    import time
    
    addresses = []
    with open("addr.csv") as f:
        reader = csv.DictReader(f)
        for row in reader:
            timestamp = time.mktime(
                time.strptime(row["created_at"], "%d/%m/%Y %H:%M:%S")
            )
            addresses.append(
                {
                    "scriptPubKey": {"handle": row["address"]},
                    "timestamp": int(timestamp),
                    "watchonly": True,
                }
            )
    res = await consumer.execute("importmulti", [addresses])
    print(res)
    

After doing that, when calculating the utxos for one of many loaded addresses, I get a listing with not all of the utxos that I can discover a block explorer. May you please present insights about what’s going on right here and easy methods to remedy it, ideally with out heavy lifting corresponding to indexing the blockchain ?

[ad_2]

LEAVE A REPLY

Please enter your comment!
Please enter your name here