I'd like to parse the blockchain in order to produce a list of all addresses that are mentioned in the blockchain.
I'd like to do this with a program, language agnostic.
Bitcoin Stack Exchange is a question and answer site for Bitcoin users, developers, and enthusiasts. It only takes a minute to sign up.
Sign up to join this communityI'd like to parse the blockchain in order to produce a list of all addresses that are mentioned in the blockchain.
I'd like to do this with a program, language agnostic.
Addresses aren't mentioned in the blockchain. But you can calculate them based on the transaction scripts. In order to do this, you need to calculate the address from the scriptPubkey
of each transaction. To calculate the address you have to:
P2PKH
or P2SH
, so you know what prefix to use: List of address prefixes.BASE58CHECK(HASH160(<prefix><scriptPubKey>))