Title: How to extract all input scripts for specific address? Post by: MrFreeDragon on October 25, 2020, 11:56:41 PM Please advice if there is ready made script or a tool which can help to extract all input scripts for the specified bitcoin address?
For example, let's take recently used address from the last confirmed block: 134YN51oPCHxXcQA687CAD5qVdkJtWAjAC The last transaction for this address was https://www.blockchain.com/btc/tx/0037f996315cd1579280791766130b476134e992326058e3cf891200f4261b01 I need to extract this input Sigscript for out transaction: Code: 483045022100a06aceefdb8cd7cceb8401a56687a579b971037c8058ed7136930934afde626b022072030a89d26fc83a307852667473660bef82794100cc1e13681471597b09cb160121021c256c8d2cca69aabc9730a6a2670f586a55d5264a0b23c050b68a3289353ca7 However I need all such scripts for all transaction for the specified address. Title: Re: How to extract all input scripts for specific address? Post by: LoyceV on October 27, 2020, 12:15:41 PM I need to extract this input Sigscript for out transaction: Yours is different than Blockchain's:Code: Yours: Quote I need all such scripts for all transaction for the specified address. If it's not too many transactions, you can probably script something to scrape it from blockchair/blockchain's website.If you're looking for addresses with many inputs, one way to get it would be downloading this Blockchair Database Dump (https://gz.blockchair.com/bitcoin/inputs/). I think you're looking at just under 400 GB of data. At 100 kB/s, that takes 1.5 months. I'd love to add this data to my other projects, but I don't have the disk space for it: Related topics Bitcoin block data available in CSV format (https://bitcointalk.org/index.php?topic=5246271.0) List of all Bitcoin addresses with a balance (https://bitcointalk.org/index.php?topic=5254914.0) List of all Bitcoin addresses ever used (https://bitcointalk.org/index.php?topic=5265993.0) Title: Re: How to extract all input scripts for specific address? Post by: nc50lc on October 28, 2020, 05:19:46 AM Yours is different than Blockchain's: He must have meant, in HEX.Blockchain is displaying ASM without showing the OP_PUSHBYTES (size) of the signature and public key. @MrFreeDragon If there are a few, the data is readily available in blockstream.info's blockexplorer when you click "DETAILS +" of a transaction. It's the "SCRIPTSIG (HEX)". Title: Re: How to extract all input scripts for specific address? Post by: MrFreeDragon on November 01, 2020, 01:05:12 PM -snip- Yours is different than Blockchain's: Code: Yours: -snip- They are the same (blockchain also shows the same, they are just ASM and HEX formats) - these are screenshots from blockchain: https://i.ibb.co/Nj2jDx8/ASM.jpg (https://ibb.co/bB5Bw1S) https://i.ibb.co/7QPk96s/HEX.jpg (https://ibb.co/bFTbf8c) -snip- He must have meant, in HEX. Blockchain is displaying ASM without showing the OP_PUSHBYTES (size) of the signature and public key. -snip- Absolutely. -snip- @MrFreeDragon If there are a few, the data is readily available in blockstream.info's blockexplorer when you click "DETAILS +" of a transaction. It's the "SCRIPTSIG (HEX)". There are several thousands of small transactions, so difficult to extract manually. EDIT: correct spelling. |