4
1
It is known, that UTXOs stored in chainstate database.
But how to get them in simple txt view? Not ballances, but each UTXO.
4
1
It is known, that UTXOs stored in chainstate database.
But how to get them in simple txt view? Not ballances, but each UTXO.
5
With vanilla Bitcoin Core, there is no efficient way to do this.
I see two options:
getblockhash 0)getblock <hash> 2, 2 stands for verbosity with transaction)gettxout <txid> <n> (where n is the outputs index)gettxout returns an object, the output is unspent (UTXO), dump it to a text fileThis may take a couple of hours or days (depending on your machine).
GetUTXOStats(), apply a text file dump in the utxo set loop (while (pcursor->Valid()) {)gettxoutsetinfo and let your added code dump data per UTXO to a file (or similar)