user92188: The question is basically in the title. Can I (or it is possible to) extract the chain code from a ledger nano s device? It doesn't have to be the Master Chain Code. Any of them will do.

user48884: Yes. You can get the public key, chaincode, and address for any derivation path.
If you use the btchip-python library, you can use the getWalletPublicKey() method to retrieve a dictionary containing all three of those things.

92188: <p>The question is basically in the title. Can I (or it is possible to) extract the chain code from a ledger nano s device? It doesn't have to be the Master Chain Code. Any of them will do.</p>
 48884: <p>Yes. You can get the public key, chaincode, and address for any derivation path.</p>

<p>If you use the <a href="https://github.com/LedgerHQ/btchip-python" rel="nofollow noreferrer"><code>btchip-python</code></a> library, you can use the <code>getWalletPublicKey()</code> method to retrieve a dictionary containing all three of those things.</p>
