# Export XPUB

### I. Introduction <a href="#ssn64ore5wjy" id="ssn64ore5wjy"></a>

* In UTXO-based cryptocurrencies like Bitcoin, change addresses are used to send back the excess amount beyond the intended recipient's address. The XPUB, which is the extended public key of your hardware wallet, is used to generate all the public addresses, including both the receiving addresses and change addresses, without exposing the private keys.
* Exporting the XPUB gives you a comprehensive view of your wallet's transaction history, including all the receiving addresses and change addresses used in transactions. This can be useful for auditing transactions for tax purposes or keeping track of your wallet activity.
* The XPUB can serve various purposes, such as auditing transactions for tax purposes or monitoring your wallet activity.
* Protect your privacy and be cautious when sharing your XPUB key. Anyone with it can monitor your wallet activity, both past and future. Keep your private keys safe and only share your XPUB key with trusted parties.

### II. Preparation <a href="#u34u1uye65t8" id="u34u1uye65t8"></a>

This tutorial applies to the **BTC-Only** version or **M-10.0 or newer** for the Multi-Coin version. If you need assistance updating your firmware, refer to the “How to [upgrade your firmware](/getting-started/firmware-upgrading.md)” tutorial.

### III. Export the XPUB by Keystone Hardware Wallet <a href="#peucv2ci7jj2" id="peucv2ci7jj2"></a>

{% tabs %}
{% tab title="On BTC-Only" %}
To export the XPUB (Extended Public Key) in \[Keystone Mobile] mode, follow these steps:

1. Tap \[My Keystone] in \[Keystone Mobile] mode.
2. Tap the three-dot icon on the top-right corner.
3. Tap \[Wallet Info] and the XPUB will be displayed.

{% hint style="info" %}
Please note that \[Keystone Mobile] mode **only has access** to **Nested Segwit** with **ypub**. If you need to export **xpub** or **zpub**, you will need to change to the appropriate mode and repeat the process.

How to change mode: Tap the menu button > Tap \[Settings] > Tap \[Watch-Only Wallet] and you will be available to change the mode.
{% endhint %}

<figure><img src="/files/vGs785udXSSU14HrjTS5" alt="BTConly-XPUB"><figcaption></figcaption></figure>
{% endtab %}

{% tab title="On Multi-Coin" %}
To export the XPUB (Extended Public Key) for BTC in \[My Asset] page, follow these steps:

1. Tap \[BTC] to access the BTC address page.
2. Tap the three-dot icon on the top-right corner.
3. Tap \[Export XPUB] and the XPUB will be displayed as **a QR code** with **specific details** below.

{% hint style="info" %}
Please note that currently, it's only available to export **ypub** for **Nested Segwit** address. **The xpub and zpub will be available soon.**
{% endhint %}

<figure><img src="/files/qdXN1y2FePgIpCrvqpmN" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

### IV. Tips and Best Practices <a href="#ze2gqigjnehy" id="ze2gqigjnehy"></a>

* **Never** **share** **your XPUB** with anyone else, as it gives access to your public addresses.
* Be cautious of phishing attempts or scams asking for your XPUB or other sensitive information.


---

# 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://support.keyst.one/advanced-features/export-xpub.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.
