<p>There is <a href="https://iancoleman.io/bip39/" rel="nofollow noreferrer">https://iancoleman.io/bip39/</a> Enter your xpub into the <code>BIP32 Root Key</code> box and in the BIP141 tab select the derivation path and address type.</p>

CC BY-SA 4.0
2018-11-08T18:03:34.693Z
2018-11-08T18:03:34.693Z
Mike D
<p>There are few utilities now that let you derive addresses from a segwit xpub</p>
<p><strong>Web Services</strong></p>
<ul>
<li><a href="https://www.blockonomics.co" rel="nofollow noreferrer">blockonomics</a></li>
<li><a href="https://blockpath.com/" rel="nofollow noreferrer">blockpath</a></li>
</ul>
<p><strong>Open Source Projects</strong></p>
<ul>
<li><a href="https://github.com/bitcoinjs/bitcoinjs-lib" rel="nofollow noreferrer">BitcoinJsLib</a></li>
<li><a href="https://github.com/richardkiss/pycoin" rel="nofollow noreferrer">pycoin</a></li>
</ul>

CC BY-SA 4.0
2021-11-09T13:45:11.300Z
2021-11-09T13:45:11.300Z
dark knight
<p>I've been using the <a href="https://www.smartbit.com.au/api" rel="nofollow noreferrer">smartbit api</a> to derive the next receiving address for a while now. However it only works for Legacy addresses and not Segwit addresses. I now have a Ledger Nano s and need a similar api to obtain the next address in my HD wallet without having to open Ledger Live. Is there such a service? If not, how can I calculate a series of addresses using the xpub / ypub only. (Javascript if possible)</p>

<api><public-key><bip32-hd-wallets><javascript><xpub>
Derive next HD segwit address from xpub/ypub
David
# Derive next HD segwit address from xpub/ypub

(Asked by: username_0 on 2018-11-08)

I've been using the [smartbit api](https://www.smartbit.com.au/api) to derive the next receiving address for a while now. However it only works for Legacy addresses and not Segwit addresses. I now have a Ledger Nano s and need a similar api to obtain the next address in my HD wallet without having to open Ledger Live. Is there such a service? If not, how can I calculate a series of addresses using the xpub / ypub only. (Javascript if possible)

**Tags:** api, public-key, bip32-hd-wallets, javascript, xpub


---

## 2 answers

### Answer by username_1 on 2018-11-08. Score: 1 | Accepted answer

There is <https://iancoleman.io/bip39/> Enter your xpub into the `BIP32 Root Key` box and in the BIP141 tab select the derivation path and address type.


---

### Answer by username_2 on 2021-11-09. Score: 0

There are few utilities now that let you derive addresses from a segwit xpub

**Web Services**

* [blockonomics](https://www.blockonomics.co)
* [blockpath](https://blockpath.com/)

**Open Source Projects**

* [BitcoinJsLib](https://github.com/bitcoinjs/bitcoinjs-lib)
* [pycoin](https://github.com/richardkiss/pycoin)


---

