user11569: I have a number of wallets. Is it possible to detect the type of (alternative) coin it contains?

user13163: look at the 'name' field mentioned by nate, here is a list of what addresses of several alt coins look like:
example address                   version   coin
17DxjJ9Uf3nqMPAtcBMcs2wUdoUBnJit1V  00  bitcoin
9ZKdQaQXZqXEXV6i7zMK3fezrPszj9zErr  15  catcoin
XguoZYoNcm1RWKmUU4fqiZdGU93skcxKkn  4c  darkcoin
DBN4GZ67xTh7tPMVLmMBQo75WwCV7ppTgD  1e  dogecoin
LRSuzWTJji2tcBs3nKLv941Er1qTq9jMnW  30  litecoin
4KvncAXnLVVqtrHaoY2Ak37mfqXjPDzfCP  08  novacoin
PEp8tGYKhyH2LDqexFg9XvukFYe4ty6DMu  37  ppcoin
AMzqNo16zCSzAMNtAq1x1vCa7QPt8metCh  17  primecoin
mmjv2METU5E68VeWKkKzgx9oVo4thkSw5x  6f  btccoin testnet
mmjv2METU5E68VeWKkKzgx9oVo4thkSw5x  6f  litecoin testnet

version is the version byte prepended to the hash before base58 encoding it.

user5757: Here's one way I found.
Get pywallet (https://github.com/jackjack-jj/pywallet) and run
python pywallet.py --dumpwallet --wallet=/foo/bar/wallet.dat

Look in the output for a field called names.  This will contain a list of addresses in the coin's own format, and by looking at the first character you can try to identify the coin by its version byte.  See here for a list of some common ones.  For example, 1 is Bitcoin, L is Litecoin, etc.
Note that you will see a number of other fields named defaultkey, addr, etc.  These will appear to be in Bitcoin address format (starting with 1), no matter what the actual coin is.  The reason is that for these keys, the wallet.dat file only contains the private key, and pywallet has to do the conversion to the public key and address.  In  particular, pywallet has to fill in the version byte, and it always picks the Bitcoin version byte unless told otherwise on the command line.  So you always get a Bitcoin-style address in these fields, so for purposes of identifying the coin, you should ignore them.

11569: <p>I have a number of wallets. Is it possible to detect the type of (alternative) coin it contains?</p>
 13163: <p>look at the 'name' field mentioned by nate, here is a list of what addresses of several alt coins look like:</p>

<pre><code>example address                   version   coin
17DxjJ9Uf3nqMPAtcBMcs2wUdoUBnJit1V  00  bitcoin
9ZKdQaQXZqXEXV6i7zMK3fezrPszj9zErr  15  catcoin
XguoZYoNcm1RWKmUU4fqiZdGU93skcxKkn  4c  darkcoin
DBN4GZ67xTh7tPMVLmMBQo75WwCV7ppTgD  1e  dogecoin
LRSuzWTJji2tcBs3nKLv941Er1qTq9jMnW  30  litecoin
4KvncAXnLVVqtrHaoY2Ak37mfqXjPDzfCP  08  novacoin
PEp8tGYKhyH2LDqexFg9XvukFYe4ty6DMu  37  ppcoin
AMzqNo16zCSzAMNtAq1x1vCa7QPt8metCh  17  primecoin
mmjv2METU5E68VeWKkKzgx9oVo4thkSw5x  6f  btccoin testnet
mmjv2METU5E68VeWKkKzgx9oVo4thkSw5x  6f  litecoin testnet
</code></pre>

<p><code>version</code> is the version byte prepended to the hash before base58 encoding it.</p>
 5757: <p>Here's one way I found.</p>

<p>Get <code>pywallet</code> (<a href="https://github.com/jackjack-jj/pywallet" rel="nofollow">https://github.com/jackjack-jj/pywallet</a>) and run</p>

<pre><code>python pywallet.py --dumpwallet --wallet=/foo/bar/wallet.dat
</code></pre>

<p>Look in the output for a field called <code>names</code>.  This will contain a list of addresses in the coin's own format, and by looking at the first character you can try to identify the coin by its version byte.  See <a href="https://en.bitcoin.it/wiki/List_of_address_prefixes" rel="nofollow">here</a> for a list of some common ones.  For example, <code>1</code> is Bitcoin, <code>L</code> is Litecoin, etc.</p>

<p>Note that you will see a number of other fields named <code>defaultkey</code>, <code>addr</code>, etc.  These will appear to be in Bitcoin address format (starting with <code>1</code>), <em>no matter what the actual coin is</em>.  The reason is that for these keys, the <code>wallet.dat</code> file only contains the private key, and <code>pywallet</code> has to do the conversion to the public key and address.  In  particular, <code>pywallet</code> has to fill in the version byte, and it always picks the Bitcoin version byte unless told otherwise on the command line.  So you always get a Bitcoin-style address in these fields, so for purposes of identifying the coin, you should ignore them.</p>
