Comments (2)
Hi rushramia,
The sending address is not in the raw structure of the blockchain, the blockchain works with inputs and outputs, not addresses.
I'm too new to this so can't help more than this.
Were you successful in finding the answer to this?
I think you need to look for the previous transaction and I'm not sure the sql dump includes all the info you need for that.
Let me know if you have a better solution.
from blockparser.
You are correct, the sending address is not printed as part of the input.
For this, you need to find the output which the input is connected to and
read the sending address from there.
In other words, you need to execute a DB query to get that out: the SQL
dump produced by my parser is pretty much a 1 to 1 dump of how the
blockchain data structure is organized.
Alternatively, you could add code to cb/sql.cpp (in method edge) to print
the sending address (it is actually fetched internally, but not printed b/c
that'd be redundant information in the DB).
- Znort.
On Thursday, February 20, 2014 7:02 AM, rushramia [email protected] wrote:
Hello @znort987, I ran the blockparser sql command (which ran successfully) and currently importing the data into mysql via the .bash script. Everything seems to be working fine so far. Great job!
However, I have a question about the SQL data structure. I noticed it dumps all the data into blocks, transactions, inputs and outputs tables in the db. I see that a block contains many transactions and the transactions contain many inputs and outputs. I also see that the input is related to an output (via it's outputID) column and I see that that the output contains a destAddress and value (which I assume is the wallet address and btc value being received by that address?). However I can't find where the sending address is specified. Is there something I'm missing or is this information not available? Please let me know if you can help clairfy. Thanks!
—
Reply to this email directly or view it on GitHub.
from blockparser.
Related Issues (20)
- *** stack smashing detected ***: <unknown> terminated HOT 2
- How to extract addresses with no zero balance?
- error compiling any idears? HOT 2
- Litecoin parsing fails
- Bitcoin parsing fails
- Bitcoin parsing fails HOT 1
- /usr/bin/ld: cannot find -lOpenSSL::SSL
- Who has advanced further in development 488868 blocks? and resolving the issue with addresses on 3xx address HOT 1
- util.cpp doesn't compile
- How can I find out how to solve this problem? Openssl has been installed HOT 1
- Transactions Input and output addresses (with input bitcoin and output bitcoin,Time stamps)
- Stack smashing on closure HOT 2
- Late Links? Failed to locate parent block?
- Error on opening from visual studio HOT 2
- mem not showing i have 1024 gb memory still error HOT 3
- Segmentation fault for new installed bitcoin core 0.16.3 with complete block downloaded HOT 2
- Which debugger?
- tst test fail HOT 2
- cannot make HOT 2
- Load BLK files from Bitcoin Core HOT 1
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 blockparser.