Bitcoin Forum
May 08, 2024, 09:43:19 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to extract all input scripts for specific address?  (Read 160 times)
MrFreeDragon (OP)
Sr. Member
****
Offline Offline

Activity: 443
Merit: 350


View Profile
October 25, 2020, 11:56:41 PM
 #1

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.

1715204599
Hero Member
*
Offline Offline

Posts: 1715204599

View Profile Personal Message (Offline)

Ignore
1715204599
Reply with quote  #2

1715204599
Report to moderator
Bitcoin mining is now a specialized and very risky industry, just like gold mining. Amateur miners are unlikely to make much money, and may even lose money. Bitcoin is much more than just mining, though!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
LoyceV
Legendary
*
Offline Offline

Activity: 3304
Merit: 16620


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
October 27, 2020, 12:15:41 PM
 #2

I need to extract this input Sigscript for out transaction:
Yours is different than Blockchain's:
Code:
Yours:
483045022100a06aceefdb8cd7cceb8401a56687a579b971037c8058ed7136930934afde626b022072030a89d26fc83a307852667473660bef82794100cc1e13681471597b09cb160121021c256c8d2cca69aabc9730a6a2670f586a55d5264a0b23c050b68a3289353ca7
Blockchain.com:
**3045022100a06aceefdb8cd7cceb8401a56687a579b971037c8058ed7136930934afde626b022072030a89d26fc83a307852667473660bef82794100cc1e13681471597b09cb1601**021c256c8d2cca69aabc9730a6a2670f586a55d5264a0b23c050b68a3289353ca7

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. 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:

nc50lc
Legendary
*
Offline Offline

Activity: 2408
Merit: 5591


Self-proclaimed Genius


View Profile
October 28, 2020, 05:19:46 AM
Merited by LoyceV (2)
 #3

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)".

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
MrFreeDragon (OP)
Sr. Member
****
Offline Offline

Activity: 443
Merit: 350


View Profile
November 01, 2020, 01:05:12 PM
 #4

-snip-
Yours is different than Blockchain's:
Code:
Yours:
483045022100a06aceefdb8cd7cceb8401a56687a579b971037c8058ed7136930934afde626b022072030a89d26fc83a307852667473660bef82794100cc1e13681471597b09cb160121021c256c8d2cca69aabc9730a6a2670f586a55d5264a0b23c050b68a3289353ca7
Blockchain.com:
**3045022100a06aceefdb8cd7cceb8401a56687a579b971037c8058ed7136930934afde626b022072030a89d26fc83a307852667473660bef82794100cc1e13681471597b09cb1601**021c256c8d2cca69aabc9730a6a2670f586a55d5264a0b23c050b68a3289353ca7

-snip-

They are the same (blockchain also shows the same, they are just ASM and HEX formats) - these are screenshots from blockchain:




-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.

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!