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?

2 Answers 2

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.

1
  • Wow, that's exactly what I was looking for!
    – schlingel
    Nov 29, 2017 at 9:22
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
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.