Comments (4)
I'm not sure I get exactly what you asked in the firsts paragraphs, however, if you're using a chainstate
for Core 0.15+ the LevelDB key is:
c:tx_id:index
So in order to get the transaction ID for each utxo
you just need to parse the whole chainstate
.
from bitcoin_tools.
As an example, for Core version 0.15+
and the following utxo
:
tx_id = 0118dd986e59473732239d39cb3b8890bf32677719dd8933b05f6614f4020000
out_index = 0
You will find the following key in the chainstate
:
43000002f414665fb03389dd19776732bf90883bcb399d23323747596e98dd180100
That is:
43 = Character c
000002f414665fb03389dd19776732bf90883bcb399d23323747596e98dd1801 = Little endian representation of the tx_id
00 = 1 byte representation of the index (0)
from bitcoin_tools.
@ubamnow404 did you managed to do it? Do you need some extra help?
from bitcoin_tools.
thanks you, I worked it out, and have working prototype. Appreciate your help 🙏
from bitcoin_tools.
Related Issues (20)
- Which linux distribution? HOT 9
- STATUS won't breathe HOT 9
- ujson linking failure with gcc 5+ HOT 1
- Find an alternative way to arrange outputs when parsing leveldb data
- Develop a 'server version' of STATUS
- Litecoin
- ZeroDivisionError: float division by zero HOT 3
- Don't work in python 3.6 HOT 5
- Not compatible with windows? HOT 3
- Error in get_chainstate_lastblock / deobfuscate_value HOT 2
- support segwit? HOT 1
- No module named 'bitcoin_tools.core' HOT 5
- Ujson requires python 3.6 or greater version
- Sum of all utxo's is greater then current supply HOT 5
- bc1qxhmdufsvnuaaaer4ynz88fspdsxq2h9e9cetdj
- Question HOT 24
- Litecoin HOT 2
- Implement decompress_pk
- is it possible to get all bitcoin addresses having balance ? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bitcoin_tools.