
[ad_1]
I’m utilizing Bitcoin Core to get all UTXOs for watchonly imported addresses. The technique is the next:
-
I load a brand new pockets
await shopper.execute("loadwallet", ["testwallet"])
-
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 shopper.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. Might you please present insights about what’s going on right here and learn how to remedy it, ideally with out heavy lifting equivalent to indexing the blockchain ?
[ad_2]
Supply hyperlink