<p>You can export your extended public key from the ledger app, by finding the appropriate command in the settings menu. Using the xpub and appropriate software, you can generate many receiving addresses that can be stored on your phone. </p>

<p>Alternatively, you can create many new ‘accounts’ in the ledger bitcoin app, and each will show you a unique address that you could copy to a text file on your phone. (This is a workaround to ledger only showing one receiving address at a time otherwise). </p>

<p>(Originally a comment, but it kinda turned into an answer)</p>

CC BY-SA 4.0
2018-05-09T19:34:36.523Z
2018-05-09T19:34:36.523Z
chytrik
<p>Is there a way for me to create an app for only my personal use, on my iPhone, that would create a valid receive address for my Nano Ledger S? I know that all of the address are derived from a master key, is there a way for me to determine what the master key is, and create software to create my own valid addresses?</p>

<p>I am looking for a way to easily accept BTC in person, with a new address, without having to carry a hardware wallet around.</p>

CC BY-SA 4.0
2018-05-09T18:32:23.027Z
Not really an answer: but depending on how often you need to accept a payment, you could just generate a bunch of receiving addresses on your ledger ahead of time, and then save them to your phone somehow (email, notes, etc). Your idea is certainly possible though; look up extended public keys (xpub keys).
chytrik
CC BY-SA 4.0
2018-05-09T18:44:37.773Z
Thanks for the suggestion! Yeah I have a couple I have saved, but I thought the Nano needed to receive something on the address before generating a new one?
DjangoBlockchain
CC BY-SA 4.0
2018-05-09T18:52:10.053Z
I believe you could work around that issue by just creating many new ‘accounts’ on your ledger. Each will show a unique address. I believe you can also find an ‘export xpub key’ command in the settings.
chytrik
CC BY-SA 4.0
2018-05-09T18:56:33.767Z
That is perfect, that is exactly what I need. If I can export the master public key I can make my own! Thanks.
DjangoBlockchain
<ledger-hardware-wallet><receiving><sendtoaddress>
How to dynamically generate bitcoin receive address with a Nano Ledger S?
DjangoBlockchain
# How to dynamically generate bitcoin receive address with a Nano Ledger S?

(Asked by: username_0 on 2018-05-09)

Is there a way for me to create an app for only my personal use, on my iPhone, that would create a valid receive address for my Nano Ledger S? I know that all of the address are derived from a master key, is there a way for me to determine what the master key is, and create software to create my own valid addresses?

I am looking for a way to easily accept BTC in person, with a new address, without having to carry a hardware wallet around.

**Tags:** ledger-hardware-wallet, receiving, sendtoaddress

> **Comments:**
> **username_1**: Not really an answer: but depending on how often you need to accept a payment, you could just generate a bunch of receiving addresses on your ledger ahead of time, and then save them to your phone somehow (email, notes, etc). Your idea is certainly possible though; look up extended public keys (xpub keys).  
> **username_0**: Thanks for the suggestion! Yeah I have a couple I have saved, but I thought the Nano needed to receive something on the address before generating a new one?  
> **username_1**: I believe you could work around that issue by just creating many new ‘accounts’ on your ledger. Each will show a unique address. I believe you can also find an ‘export xpub key’ command in the settings.  
> **username_0**: That is perfect, that is exactly what I need. If I can export the master public key I can make my own! Thanks.  

---

## 1 answers

### Answer by username_1 on 2018-05-09. Score: 1 | Accepted answer

You can export your extended public key from the ledger app, by finding the appropriate command in the settings menu. Using the xpub and appropriate software, you can generate many receiving addresses that can be stored on your phone.

Alternatively, you can create many new ‘accounts’ in the ledger bitcoin app, and each will show you a unique address that you could copy to a text file on your phone. (This is a workaround to ledger only showing one receiving address at a time otherwise).

(Originally a comment, but it kinda turned into an answer)


---

