Discover how Coinsnap uses xPub keys to generate secure, self-custodial Bitcoin on-chain payment addresses for every order. Learn what an xPub key is, why Native SegWit (bc1q) addresses are recommended, and how merchants can easily link their own Bitcoin wallet to receive payments directly — without intermediaries.

xPub Key

Understanding xPub Keys: How Coinsnap Enables Direct Bitcoin Self-Custody for Merchants

What Is an xPub Key – and Why Is It Important for Coinsnap?

A simple introduction for Bitcoin beginners and Coinsnap merchants.

Bitcoin is an open, transparent, and self-sovereign monetary network. Merchants who accept Bitcoin often prefer receiving funds directly into their own wallet — without intermediaries, custodians, or centralized services.
To make this possible, Coinsnap relies on an important Bitcoin concept: the xPub key.

This article explains what an xPub key is, why Coinsnap uses it, and how merchants can set it up in a few minutes.

What Is an xpub Key (Explained Simply)?

An xpub key (Extended Public Key) is like the master public key of your Bitcoin wallet.
In other words:
  • From a single xpub key, your wallet (or Coinsnap) can generate an unlimited number of receiving Bitcoin addresses.
  • The xpub cannot spend coins — it only allows creating new, unique receiving addresses.
  • You stay in full control of your Bitcoin at all times.
  • You never need to manually create a new on-chain address for every customer payment again — Coinsnap does this automatically.
Think of your xpub key as an “address generator” that:
  • does not expose private keys
  • does not allow spending
  • but does allow generating new Bitcoin receiving addresses forever

xPub Key

Why Coinsnap Recommends Native SegWit (bc1q…)

Bitcoin supports several types of on-chain addresses. The newest and most efficient typestarts with:

bc1q…

These are Native SegWit addresses (BIP84).
Coinsnap recommends them because they offer:
  • lower transaction fees
  • modern and efficient design
  • broad compatibility across all self-custodial wallets
  • excellent future-proofing

If your wallet is using Native SegWit, the master public key will often be called:

  • zpub (or sometimes still xpub, e.g. in Sparrow Wallet)

Coinsnap is able to generate correct bc1q on-chain addresses from either an xpub or a zpub— as long as the wallet uses the BIP84 standard.

How Coinsnap Uses Your xPub Key

Whenever a customer pays an on-chain Bitcoin invoice, Coinsnap automatically generates a new Bitcoin address derived from your xPub key.

The process:

  1. You save your xPub key inside your Coinsnap dashboard.

  2. Coinsnap creates a new address for each incoming order.

  3. The customer pays directly to your self-custody wallet.

  4. Coinsnap never holds or controls your funds.

You enjoy automated address generation while maintaining full control of your Bitcoin.

What Happens With Lightning vs. Bitcoin Payments?

Coinsnap supports both Lightning and On-Chain Bitcoin payments:

1. Lightning Payments

You must provide a Lightning Address when setting up your account.

All Lightning payments go directly to that wallet.
Examples:

2. On-Chain Bitcoin Payments

If you add your xPub key:

  • Lightning payments → go to your Lightning wallet

  • On-chain payments → go directly to your Bitcoin wallet

This cleanly separates your Lightning and On-Chain funds.

How to Add Your xPub Key in the Coinsnap Dashboard

For New Coinsnap Users

  1. Sign up or log in to Coinsnap.

  2. Enter your Lightning Address (required).

  3. Go to Settings → Wallet.

  4. Paste your xPub / zPub key.

  5. Save — done!

For Existing Coinsnap Merchants

Just go to:

Settings → Wallet → Add xPub Key

All future on-chain payments will now be sent directly to your wallet.

Wallets That Provide an xPub Key

Hardware Wallets (Recommended)

  • BitBox02

  • Ledger Nano S / X / Stax

  • Trezor One / Model T

Desktop Wallets

  • Sparrow Wallet

  • Electrum

  • Specter Desktop

Mobile Wallets

  • BlueWallet (vault mode)

  • Nunchuk

  • Zeus (with your own node)

Wallets That Do Not Provide xPub Keys

  • Wallet of Satoshi (Lightning only)

  • Exodus

  • Coinbase / Binance (custodial, no self-custody keys)

Conclusion

xPub keys allow merchants to receive Bitcoin on-chain payments directly in their own self-custodial wallet — securely and without intermediaries.

With Coinsnap:

  • Lightning payments go to your Lightning address

  • On-chain payments are derived from your xPub key

This setup gives you complete control, maximum flexibility, and a clean separation between Lightning and Bitcoin funds.

About the author

Jens Leinert
Jens Leinert

Jens Leinert serves as the Bitcoin Development Manager at Coinsnap, where he drives the company’s Bitcoin strategy and leads the development of new Bitcoin-based products. His role focuses on business development, exploring and establishing partnerships, and expanding the Coinsnap ecosystem with innovative payment and infrastructure solutions for merchants.