# Getting an address Private Key

A stepwise approach using the Electrum wallet from electrum.org. This will require the Mnemonic seed phrase from your Leather so you can access it in Electrum and extract the private key for a specific address.&#x20;

1. Download and install the Electrum wallet
2. Choose the Leather address and account you want to set up in Electrum. In this example we use Account 3, and want to access the native segwit BTC address.&#x20;
   1. For native segwit address (starting with bc1q...) the following path is used: m/84'/0'/`<account>'`/0/0
   2. For taproot addresses (ordinal inscription address) the following path is used: m/86'/0'/`<account>'`/0/0 legacy regenerated addresses from before March 20th would be on the last index. (Taproot m/86' or bc1p... is not yet supported by Electrum).&#x20;
3. In this example, Account 3 the BTC balance address (native segwit, starting with bc1q...) means we want to get access to m/84'/0'/2'
4. Click File in Electrum
5. New/Restore wallet\
   ![](https://2711255060-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgNoCNE0bvsne0MKkDx44%2Fuploads%2FSne0yT6GpSaN9OPLA5ru%2Fimage.png?alt=media\&token=6137f844-c8c5-4a5c-912b-bf1147317f44)
6. Name your wallet\
   ![](https://2711255060-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgNoCNE0bvsne0MKkDx44%2Fuploads%2Fg799sMZWZdTV6Kk80AJq%2Fimage.png?alt=media\&token=2151ba9a-d6df-4ac9-abad-70e8c9f6e0ce)
7. Standard wallet\
   ![](https://2711255060-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgNoCNE0bvsne0MKkDx44%2Fuploads%2Fc0YbIuKDV1F4hovwc0Ks%2Fimage.png?alt=media\&token=5b16b12f-ed78-4a04-9bfd-00529ab009fd)
8. I already have a seed\
   ![](https://2711255060-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgNoCNE0bvsne0MKkDx44%2Fuploads%2Fb3efyh787806aiUaOZ5R%2Fimage.png?alt=media\&token=93a625d3-0a40-47c7-bcb7-5ab2adbd18ef)
9. Enter your Seed Phrase (typically 24 words)
10. Click Options and select BIP39\
    ![](https://2711255060-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgNoCNE0bvsne0MKkDx44%2Fuploads%2FZqWuMX799TjGBoHslCDJ%2Fimage.png?alt=media\&token=2842eecd-4020-4b6e-98f0-8609cba9b1bd)
11. Set address type\
    ![](https://2711255060-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgNoCNE0bvsne0MKkDx44%2Fuploads%2FCDivm7QPnarKb2dPbfZx%2Fimage.png?alt=media\&token=08312e87-2b44-4829-a781-13db5a635a79)
12. Set the derivation path for the account you want to access (account 3 in Leather means /2h, account 5 would be /4h at the end). \
    ![](https://2711255060-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgNoCNE0bvsne0MKkDx44%2Fuploads%2F7nFmbmuZVUw9hidbzxr1%2Fimage.png?alt=media\&token=f0d92599-4a36-4a67-a620-7e9fb52cef68)
13. Click View in the top bar on Electrum after the wallet is initialized.\
    ![](https://2711255060-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgNoCNE0bvsne0MKkDx44%2Fuploads%2F931U3gAp0nppf4L2QbQO%2Fimage.png?alt=media\&token=c5b401b6-140a-437d-8dfb-f5dcc76f410c)
14. Click the addresses tab, the first address will be the native segwit address displayed in the Leather wallet for Account 3.<br>

    <figure><img src="https://2711255060-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgNoCNE0bvsne0MKkDx44%2Fuploads%2F3FF7K42xA2bYyBOsed23%2Fimage.png?alt=media&#x26;token=db8ce830-c0b6-4783-bacc-8b0f1821e158" alt=""><figcaption><p>The first address is the one used by Leather in Account 3<br>The addresses below are currently not used by the wallet. If you want access to account 14, go through these steps again and adjust the derivation path in stap 12 to /13h (or /13') at the end. </p></figcaption></figure>

<figure><img src="https://2711255060-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgNoCNE0bvsne0MKkDx44%2Fuploads%2FSaz6CVl5rBMsSoVBZsc7%2Fimage.png?alt=media&#x26;token=f3d9f0d8-979e-439a-a7a6-f9faf2dd471e" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2711255060-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgNoCNE0bvsne0MKkDx44%2Fuploads%2FK2DvZYUG2KmS54Bb9rKa%2Fimage.png?alt=media&#x26;token=76db01f9-eb02-4799-833a-b93d06f12e2b" alt=""><figcaption></figcaption></figure>

15. Right click the top address and click "private key"<br>

    <figure><img src="https://2711255060-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgNoCNE0bvsne0MKkDx44%2Fuploads%2FKLck60NI0xqX0jiyHq5H%2Fimage.png?alt=media&#x26;token=8bd298b1-056a-4c2a-9b89-ace31baf548b" alt=""><figcaption><p>Accessing the private key for the address via Electrum wallet</p></figcaption></figure>
16. Enter password\
    ![](https://2711255060-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgNoCNE0bvsne0MKkDx44%2Fuploads%2FnQy7CCVrr2lWySoXc0j2%2Fimage.png?alt=media\&token=675379d2-8616-4766-a36c-c6412880ff02)
17. Copy the *p2wpkh* key to use elsewhere.
18. Repeat steps from 4. to get the private keys for other accounts in Leather. <br>

<figure><img src="https://2711255060-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgNoCNE0bvsne0MKkDx44%2Fuploads%2F9WiIQaLwINMamjwunMHK%2Fimage.png?alt=media&#x26;token=b33a6ab4-6885-4d8a-9bca-51c39eb3affa" alt=""><figcaption><p>Example: the first address from Account 14 in Leather</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://leather.gitbook.io/guides/bitcoin/getting-an-address-private-key.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
