block – get supply deal with of a transaction

0
58


I’ve been conducting analysis on the net and Bitcoin Stack Change to discover a methodology for acquiring the supply deal with of a transaction. I’ve come throughout a number of solutions, some suggesting using APIs, whereas others focus solely on P2PKH sigscript.

In my case, the sigscript is a P2PK signature. I’ve utilized on-line transaction decoders, which parse the hexstring in the same method to how I’ve carried out it in my code. Nonetheless, I’ve observed that these decoders don’t present the supply deal with. Curiously, block explorers do show the supply deal with. I’m curious to know the way block explorers receive this data and calculate or retrieve the supply deal with utilizing the Bitcoin protocol itself, with out counting on block explorer APIs.

prevtxid :

201,151,165,229,110,16,65,2,250,32,156,106,133,45,217,6,96,162,11,45,156,53,36,35,237,206,37,133,127,205,55,4

sigscript :

71,48,68,2,32,78,69,225,105,50,184,175,81,73,97,161,211,
                    161,162,95,223,63,79,119,50,233,214,36,198,198,21,72,171,
                    95,184,205,65,2,32,24,21,34,236,142,202,7,222,72,96,164,
                    172,221,18,144,157,131,28,197,108,187,172,70,34,8,34,33,
                    168,118,141,29,9,1

LEAVE A REPLY

Please enter your comment!
Please enter your name here