I'm trying to get the addresses from the
ScriptPubKeys in each transaction (where possible). So far, I know of two patterns of
ScriptPubKey where an address can be found:
In this locking script, the code before
OP_CHECKSIG is a public key, so that can be converted in to an address.
OP_DUP OP_HASH160 3d37cde30fdfcf29b2996a7ceefd220ba32c9f4b OP_EQUALVERIFY OP_CHECKSIG
In this one, the code after
OP_HASH160 (and before the next
OP code) is the hash160 of a public key, so that can be converted to an address also.
Are there any other patterns of
ScriptPubKey where addresses can be found?
Or in other words, will I be able to capture every address by working on all non-opcodes before
OP_CHECKSIG, and all non-opcodes after