Bitcoin Forum
July 06, 2024, 06:42:40 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: how to parse UTXO?  (Read 589 times)
~DefaultTrust (OP)
Copper Member
Sr. Member
****
Offline Offline

Activity: 1554
Merit: 489

Stop the war!


View Profile
June 15, 2020, 04:16:43 AM
 #1

How can I get all unspent transactions outputs from Bitcoin UTXO? It seems that Bitcoin Core have no RPC API for this task?
Is there an open source tool for parsing UTXO database?

Do not trust bitcointalk fascists: leonello; Snork1979; ivan1975
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3444
Merit: 6748


Just writing some code


View Profile WWW
June 15, 2020, 04:48:25 AM
Merited by piotr_n (10), ABCbits (1), ~DefaultTrust (1)
 #2

Bitcoin Core 0.20.0 introduced a dumptxoutset command that exports the UTXO set to a file in a serialized format. It is not human readable so it will be a bit difficult to parse the file to get the actual UTXOs.

There is a PR to also have dumptxoutset output the UTXO set in a human readable format, but this has not been merged yet.

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!