user82506: I'm developing a script that processes blk.dat files from bitcoin core. So far, I am able to retrieve the following attributes for transaction inputs:
"vin",
"index",
"sigScript",
"sequence",
"witness"

Is it possible to get the address and the value of the input from the blk.dat files?
In case you need more info or the question is not clear, please let me know.

user13866: 
Is it possible to get the address and the value of the input from the blk.dat files?

Yes. It is possible. After all, that's effectively what blockchain explorers do.
I would try to do something like the following

Use the previous transaction id to look up and obtain the contents of the previous transaction.
Use the index to retrieve the specific output of the previous transaction being used as an input in the current transaction
Obtain the value from that output.
Derive an address from the locking script (AKA ScriptPubKey) of that output.


Potentially useful:

What do the different .dat files contain?
How to parse transaction script to address the correct way?
Can you break down what data is encoded into a bech32 address?
How to get addresses from scriptPubKey in segwit transactions?
In what format does a block store the transaction data?
What are the parts of a Bitcoin transaction in segwit format?


82506: <p>I'm developing a script that processes blk.dat files from bitcoin core. So far, I am able to retrieve the following attributes for transaction inputs:</p>
<pre><code>&quot;vin&quot;,
&quot;index&quot;,
&quot;sigScript&quot;,
&quot;sequence&quot;,
&quot;witness&quot;
</code></pre>
<p>Is it possible to get the address and the value of the input from the blk.dat files?</p>
<p>In case you need more info or the question is not clear, please let me know.</p>
 13866: <blockquote>
<p>Is it possible to get the address and the value of the input from the blk.dat files?</p>
</blockquote>
<p>Yes. It is possible. After all, that's effectively what blockchain explorers do.</p>
<p>I would try to do something like the following</p>
<ul>
<li>Use the previous transaction id to look up and obtain the contents of the previous transaction.</li>
<li>Use the index to retrieve the specific output of the previous transaction being used as an input in the current transaction</li>
<li>Obtain the value from that output.</li>
<li>Derive an address from the locking script (AKA ScriptPubKey) of that output.</li>
</ul>
<hr />
<p>Potentially useful:</p>
<ul>
<li><a href="https://bitcoin.stackexchange.com/q/853/13866">What do the different .dat files contain?</a></li>
<li><a href="https://bitcoin.stackexchange.com/q/92957/13866">How to parse transaction script to address the correct way?</a></li>
<li><a href="https://bitcoin.stackexchange.com/q/100508/13866">Can you break down what data is encoded into a bech32 address?</a></li>
<li><a href="https://bitcoin.stackexchange.com/q/49596/13866">How to get addresses from scriptPubKey in segwit transactions?</a></li>
<li><a href="https://bitcoin.stackexchange.com/q/113631/13866">In what format does a block store the transaction data?</a></li>
<li><a href="https://bitcoin.stackexchange.com/q/113697/13866">What are the parts of a Bitcoin transaction in segwit format?</a></li>
</ul>
