• Welcome to forex.pm forex forum binary options trade. Please login or sign up.
 

Parsing bitcoin blockchain, get input (vin)

Started by Bitcoin, May 03, 2022, 04:48 am

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Bitcoin

Parsing bitcoin blockchain, get input (vin)

I downloaded the bitcoin blockchain. I have a full node and I would like to do some parsing. I use RPC to send commands to bitcoin core from my Python program. When I get a block it works fine but the input is missing. I am forced to look for the associated transaction to "discover" the address and the value. For the output no problem, it's a known problem; the problem is that making an extra request for each input slows down my program a lot, for the moment I haven't found a solution so I'm relying on you a bit.


I tried to find a solution on the UTXO side with the gettxout command but I have to think again, not sure it does what I want.


My goal is to get a result like the one of blockchain.info. Addresses don't interest me, the HEX script is enough, the input address, the output address, and the associated value.


Source: Parsing bitcoin blockchain, get input (vin)