Skip to content
0,00 €
  • Home
  • Bitcoin
  • Lightning
  • Accept
  • Wallet
  • Payment
  • BTCPay
  • Coinsnap
  • Blog
  • YouTube
  • Agency
    • Coincharge – Bitcoin payment processing agency
    • Coincharge products and services
    • Contact
CoinchargeCoincharge
CoinchargeCoincharge
  • Home
  • Bitcoin
  • Lightning
  • Accept
  • Wallet
  • Payment
  • BTCPay
  • Coinsnap
  • Blog
  • YouTube
  • Agency
    • Coincharge – Bitcoin payment processing agency
    • Coincharge products and services
    • Contact

Deposit xPub Key with BTCPay Server

Deposit xPub Key with BTCPay Server

xPub Public Bitcoin Address

xPub Adresse

Set up and administer BTCPay Shop

Deposit xPub key with the BTCPay server

Incoming payments are managed with the help of the BTCPayServer. A Bitcoin wallet is required to receive and send Bitcoin.

To receive Bitcoin with the BTCPay server, you have the following options:

  • You use an already existing external wallet in which you import the xpubkey.
  • You create a new wallet on the BTCPay server, the BTCPay Wallet.

Wenn Sie Ihre Bitcoin mit der integrierten BTCPay Wallet verwalten möchten, empfehlen wir Ihnen das Tutorial “BTCPay Wallet“. This tutorial explains how to create an xpub key from an existing wallet and store it on the BTCPay server. We describe this using the example of an Electrum Wallet.

In case of an external Bitcoin wallet, the Bitcoin balance is not located in the BTCPayServer at any time, but always on the external wallet of the merchant.

You need a Bitcoin wallet to generate xPub public keys (xpub Key / xpubKey).

The xPub Key is deposited at BTCPayServer and the Private Key remains in the possession of the merchant.

BTCPayServer is thus able to generate a public key for each transaction and credit the payments directly to the merchant’s wallet, without itself coming into possession of the Bitcoin.

The wallet also does not have to be permanently online, but is physically separated from the BTCPay server. The wallet can be a hardware wallet like Coldcard or Ledger or a software wallet like Electrum that runs on your local computer.

In our example, we use the Electrum Wallet, which runs on your own local computer.

We explain how to set up an Electrum Wallet and generate the xPub Key in “Creating xPub Key with Electrum Wallet“.

Export xPub Key at Electrum Wallet

Within Electrum Wallet, go to the Wallet section and then to Information. There you can find the xPub Key

p2wpkh-p2sh

Import xPub Key at BTCPay

In the Shop Administration under General Settings we go to the Derivation Scheme section

xbup Key derivation scheme

In the Shop Administration under General Settings we go to the Derivation Scheme section

3 BTC Derivation scheme

In the Derivation Scheme field we enter the xPub key that we exported from Electrum under Wallet and Information.

When inserting, the address type must also be appended.

The address type depends on what your wallet generates or what you specified when creating the Electrum wallet. In Electrum Wallet it is specified as Script Type:

bc1….. P2WPKH, Bech32 Address
3….. P2SH-P2WPKH -[p2sh]
1….. P2PKH -[legacy]

Depending on the script type, the addition, including hyphen and bracket, must be appended to the xpub key.

If a Bech32 address is created with the script type p2wpkh, then an addition is not necessary.

ATTENTION:

For traders, it is recommended that the SegWit (P2SH) format is used instead of the SegWit (Bech32) format.

Therefore we use the address type: p2wpkh-p2sh

Accordingly, we need to append the suffix -[p2sh]to the generated xPub key. Including the minus sign and the square bracket.

BPS Derivation2 1

To check if the address was specified correctly, we check the Enabled box and click Continue.

We get a listing of 10 Bitcoin addresses in total,

BPS Derivation3

which must be identical to the addresses displayed in the Electrum Wallet under Address:

ew adresses 1

From this address pool the Bitcoin addresses are taken, which are needed for receiving the Bitcoin payments.

Since only 10 addresses are created in stock by Electrum by default, the Electrum Gap Limit must be increased.

To do this, go to the Console menu item in the Electrum Wallet and enter the command:

wallet.change_gap_limit(100)

and presses Enter

After that the command:

wallet.storage.write()

To check how high the gap limit is, issue the command:

wallet.gap_limit

one.

If you want to read a detailed description about creating the Electrum Wallet and increasing the gap limit, you can find it at:

Create xPub Key with Electrum Wallet

Any Bitcoin payments are automatically credited to your own Bitcoin wallet (here Electrum Wallet).

You can check this by comparing the transactions displayed in BTCPay with the transactions in your wallet.

You also have the sole right to dispose of the Bitcoin on your wallet. You can keep the Bitcoin or forward it to a Bitcoin exchange to exchange for Euros.

You also might be interested in

Lightning Alias

Create Lightning Alias

Jul 12, 2021

Lightning Alias To create a Lightning alias The own Lightning[...]

BlueWallet -Lightning & Bitcoin Wallet

BlueWallet

Jul 13, 2021

BlueWallet – Set up and use Lightning & Bitcoin Wallet[...]

Bitcoin Payment privacy

Bitcoin payment privacy: Why Bitcoin Lightning is superior to traditional payment methods

Jan 24, 2026

Paying without a data trail: why Bitcoin Lightning is superior[...]

Leave a reply

Search

Coinsnap

Accept Bitcoin with Coinsnap

Recent Posts

  • AI agents pay on their own
  • Coinsnap Point of Sale Wallet
  • Why internet booking engines should integrate Bitcoin payments
  • Accept Bitcoin at the hotel
  • Bitcoin acceptance 2026: What the River study shows about merchants and bitcoin payments
  • Spark explains: The last-mile solution for Bitcoin payments?
  • Lightning is not dead
  • Set up the BTCPay Boltz plugin
  • How can I accept Bitcoin?
  • Bitcoin im Baukastenshop akzeptieren – auch ohne Plugin oder API

Categories

  • Accept Bitcoin and Lightning
  • Bitcoin
  • BTCPay
  • Coinsnap
  • Lightning
  • Lightning Wallet
  • Payment processing
  • Uncategorized

Tags

Accept Bitcoin Accept Lightning Alby Bitcoin Paywall Bittr blink Blixt Blue Wallet Breez btcpay BTCPayWall BTCPay WordPress Integration Cashu Chaumian eCash Coinsnap Custodial ecash electrum jimdo Lightning Address Lightning Login Lightning payments Lightning Paywall Lightningtipbot lightning wallet lnbits LNPoS LNURL Mint Opago opennode Phoenix Pocket Point of Sale Relai shopify Shopware Speed TPos Wallet of Satoshi woocommerce WordPress WordPress Bitcoin Plugin Zaprite zeus

Accept Bitcoin

Coincharge supports merchants to accept Bitcoin and Lightning as payment methods.

You can find all the information you need to integrate Bitcoin and Lightning into your business or online store on Coincharge.

Partnership

  • Coinsnap - Bitcoin & Lightning Payment Provider
  • Coinpages - Bitcoin Directory
  • BTCPayWall - Sell Content and Digital Goods

Tipping Box

Coincharge – About us

  • Coincharge - Bitcoin payment processing agency
  • Coincharge - Products and Services
  • Coincharge BTCPay Store
  • Contact

© 2026 · coincharge.io ist ein Service der Internetactive GmbH

Prev Next
Support