0

I'm looking for an API which lets me query for UTXOs on the base of specific meta data, e.g:

  • When was the transaction containing the UTXO issued?
  • From which address?
  • etc.

I have found this question: What is the best way to download a "recent" UTXO set snapshot?

But it just contains the information that it's unsafe. I'm only interested in the meta data and don't want to run a wallet on it. Therefore I'm not interested in security aspects.

Is there a war to query on the UTXO globally, without a given address? Or a way to download the whole UTXO?

schlingel
  • 105
  • 5

2 Answers2

2

This project: https://github.com/sr-gi/bitcoin_tools might be what you're looking for...The repo has resources to dump the leveldb database into a JSON like format for review and analysis. They also created a paper discussing the format of UTXO here.

JohnGalt
  • 136
  • 3
1
  • Pycoin is a highly recommended library. You can set it to query multiple blockchain API providers for safety. Here is an example to get unspent outputs while creating a transaction.
  • I did a similar analysis by directly reading from .bitcoin/chainstate directory a while ago. Note: May not work with bitcoind 0.15+, as it had changes in chainstate DB format
dark knight
  • 2,017
  • 9
  • 25