<p>I am a vendor in a marketplace that accepts bitcoin.</p>
<p>In bitcoin core that I run, I retrieved <code>pubkey</code> of my wallet by running <code>getaddressinfo</code>. Now, I need to generate an <code>xpub</code> key and pass it on to the marketplace, so that they can derive addresses for me to receive payments, one per order.</p>
<p>Howe do I retrieve and <code>xpub</code> key by using bitcoin core so that that key is usable by the marketplace and 1) will allow them to generate multiple child public keys (= one-time addresses for per-order payments), and 2) will allow me to view all the incoming payments, and spend them.</p>

CC BY-SA 4.0
2023-03-21T12:13:26.843Z
Maybe duplicated: https://bitcoin.stackexchange.com/questions/90135/how-do-i-export-an-xpub-from-bitcoin-core-for-use-in-btcpayserver
bordalix
CC BY-SA 4.0
2023-03-21T14:52:48.467Z
Which version of Bitcoin Core are you using? What version did you use to generate your wallet? (Is a Descriptor Wallet?)
Murch
CC BY-SA 4.0
2023-03-21T15:16:18.360Z
@Murch Bitcoin Core version v22.0.0 for both.
Meglio
<bitcoin-core><xpub>
bitcoin core generate xpub (not hardened) from pubkey
Meglio
# bitcoin core generate xpub (not hardened) from pubkey

(Asked by: username_0 on 2023-03-21)

I am a vendor in a marketplace that accepts bitcoin.

In bitcoin core that I run, I retrieved `pubkey` of my wallet by running `getaddressinfo`. Now, I need to generate an `xpub` key and pass it on to the marketplace, so that they can derive addresses for me to receive payments, one per order.

Howe do I retrieve and `xpub` key by using bitcoin core so that that key is usable by the marketplace and 1) will allow them to generate multiple child public keys (= one-time addresses for per-order payments), and 2) will allow me to view all the incoming payments, and spend them.

**Tags:** bitcoin-core, xpub

> **Comments:**
> **username_1**: Maybe duplicated: https://bitcoin.stackexchange.com/questions/90135/how-do-i-export-an-xpub-from-bitcoin-core-for-use-in-btcpayserver  
> **username_2**: Which version of Bitcoin Core are you using? What version did you use to generate your wallet? (Is a Descriptor Wallet?)  
> **username_0**: @username_2 Bitcoin Core version v22.0.0 for both.  

---

## 0 answers

