How can you get a list of all addresses mentioned in the blockchain? 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.
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:


Determine whether it is a P2PKH or P2SH, so you know what prefix to use: List of address prefixes.
Calculate the BASE58CHECK(HASH160(&lt;prefix&gt;&lt;scriptPubKey&gt;))