<blockquote>
<p><strong>I used xpub to generate btc addresses.</strong></p>
</blockquote>
<p>&quot;xpub&quot; means several different things. Lets assume you refer to the &quot;xpub-cli&quot; application named <code>xpub</code> <a href="https://www.npmjs.com/package/@swan-bitcoin/xpub-cli" rel="nofollow noreferrer">published by swan-bitcoin</a> four years ago</p>
<blockquote>
<p><strong>How do work out the correct derivation path to use?</strong></p>
</blockquote>
<p>Only you know what derivation path you specified back in 2020. The derivation path used by swan's <code>xpub</code> depends on what command-line arguments you provided.</p>
<p>They give several examples such as</p>
<pre><code>$ xpub derive \
ypub6XFA3jGfowZ6umedCYjPiMUeFetNQYDpUpHKqbrE3bzwawLmLbvYCYaUpiwZ6FHwU951b9dLd6hSvFJwHv763vvpXUV44PW62rtesm5g4wa \
 -n3 -c5 --purpose p2sh

[
  {
    path: &quot;m/49'/0'/5'/0/0&quot;,
    address: '3PEpUeFZUWJPrbdKGzaNeEpekSPpSbVSzL'
  },
  {
    path: &quot;m/49'/0'/5'/0/1&quot;,
    address: '3AedcVmzeoUF4tHkzDHM6wp7WLoo668KwT'
  },
  {
    path: &quot;m/49'/0'/5'/0/2&quot;,
    address: '3BpPnS79WUzRQMG2DCNUKHgSKCaNoAMPCu'
  }
]
</code></pre>
<p>Note that the <code>5</code> in the path comes from the BIP-44 account number specified in <code>-c5</code></p>
<p>Only you know what exact command line you used in 2020.</p>

CC BY-SA 4.0
2024-05-30T11:03:01.983Z
At the time I inputed the xpub (which I’m sure I extracted from Exodus) this then gave me multiple btc addresses. When I load this wallet up I do not get the same xpub and the only way for me to find the addresses which btc was sent to is with the xpub I still have noted down. Hope this adds some more information
btc_mistakes
CC BY-SA 4.0
2024-05-29T09:19:33.367Z
2024-05-29T09:19:33.367Z
RedGrittyBrick
<p>2020 I used xpub to generate btc addresses. Little did I know these would not be picked up by my wallet.</p>
<p>I still have all the keys for my wallet, but any wallet program does not seem to be able to see the btc I have.</p>
<p>There are four transactions to different addresses which are owned by my wallet.</p>
<p>How do work out the correct derivation path to use?</p>
<p>I hope this makes sense to someone</p>

<wallet><xpub><p2pkh>
Xpub used to create vendor addresses, btc not seen in wallet. How choose which derivation path is needed?
btc_mistakes
# Xpub used to create vendor addresses, btc not seen in wallet. How choose which derivation path is needed?

(Asked by: username_0 on 2024-05-25)

2020 I used xpub to generate btc addresses. Little did I know these would not be picked up by my wallet.

I still have all the keys for my wallet, but any wallet program does not seem to be able to see the btc I have.

There are four transactions to different addresses which are owned by my wallet.

How do work out the correct derivation path to use?

I hope this makes sense to someone

**Tags:** wallet, xpub, p2pkh


---

## 1 answers

### Answer by username_1 on 2024-05-29. Score: 0

> **I used xpub to generate btc addresses.**

"xpub" means several different things. Lets assume you refer to the "xpub-cli" application named `xpub` [published by swan-bitcoin](https://www.npmjs.com/package/@swan-bitcoin/xpub-cli) four years ago

> **How do work out the correct derivation path to use?**

Only you know what derivation path you specified back in 2020. The derivation path used by swan's `xpub` depends on what command-line arguments you provided.

They give several examples such as

```
$ xpub derive \
ypub6XFA3jGfowZ6umedCYjPiMUeFetNQYDpUpHKqbrE3bzwawLmLbvYCYaUpiwZ6FHwU951b9dLd6hSvFJwHv763vvpXUV44PW62rtesm5g4wa \
 -n3 -c5 --purpose p2sh

[
  {
    path: "m/49'/0'/5'/0/0",
    address: '3PEpUeFZUWJPrbdKGzaNeEpekSPpSbVSzL'
  },
  {
    path: "m/49'/0'/5'/0/1",
    address: '3AedcVmzeoUF4tHkzDHM6wp7WLoo668KwT'
  },
  {
    path: "m/49'/0'/5'/0/2",
    address: '3BpPnS79WUzRQMG2DCNUKHgSKCaNoAMPCu'
  }
]

```

Note that the `5` in the path comes from the BIP-44 account number specified in `-c5`

Only you know what exact command line you used in 2020.

> **Comments:**
> **username_0**: At the time I inputed the xpub (which I’m sure I extracted from Exodus) this then gave me multiple btc addresses. When I load this wallet up I do not get the same xpub and the only way for me to find the addresses which btc was sent to is with the xpub I still have noted down. Hope this adds some more information  

---

