Bitcoin News / Bitcoin Stack Exchange - 5 years ago
How do I extract the address from a scriptPubKey?
Yes, to get addresses from scriptPubKeys, you will need to do a pattern match. There are only a small number of address types each with their own fixed scriptPubKey pattern. Keep in mind that not all scriptPubKeys map to an address so you will find...