Live
Coinweb
Web3 Definition· 1 min read
Markdown

xPub (Extended Public Key)

Quick Definition

An xPub (Extended Public Key) is a master public key in a Hierarchical Deterministic (HD) crypto wallet that can generate an unlimited sequence of receiving addresses and track total wallet balances without exposing private keys.

What Is an xPub?

An xPub (Extended Public Key) is defined by Bitcoin Improvement Proposal BIP-32 for Hierarchical Deterministic (HD) wallets. Instead of creating a single static address, modern Bitcoin wallets derive thousands of fresh public receiving addresses deterministically from one master seed. Exporting your account-level xPub allows external software to mathematically recreate that entire tree of public addresses—while keeping your private spending keys (xPriv) locked safely offline on your hardware wallet.

xPub vs. yPub vs. zPub Prefixes

Prefix Bitcoin Standard Generated Address Format Typical Use
xpub BIP-44 (Legacy) Starts with 1... Legacy P2PKH accounts (or generic descriptor export)
ypub BIP-49 (Nested SegWit) Starts with 3... Backward-compatible P2SH-SegWit wallets
zpub BIP-84 (Native SegWit) Starts with bc1q... Modern lowest-fee Native SegWit wallets

Safe Real-World Uses of an xPub

  • Watch-Only Portfolio Tracking: Import your hardware wallet's xPub/zPub into a mobile watch-only app (like BlueWallet or Sparrow) to verify incoming deposits and monitor balances while your cold wallet stays locked in a safe.
  • Automated Crypto Tax Syncing: Connecting your xPub to crypto tax software automatically imports every historical receive and change address in one step.
  • E-Commerce Checkout: Self-hosted processors like BTCPay Server use your xPub to generate a fresh, unique Bitcoin payment address for every customer invoice without storing private keys on a web server.

Critical Privacy & Security Warnings

  • Total Financial Privacy Exposure: Anyone who obtains your xPub can see every past and future transaction and your full account balance forever. Never post an xPub publicly.
  • Never Mix xPub With Any Child Private Key: Under BIP-32 non-hardened derivation, leaking both an xPub and even a single child private key derived from it allows an attacker to mathematically recover the master parent private key for the entire account.

Frequently Asked Questions

Can someone steal my Bitcoin if they have my xPub?

Not from the xPub alone—it cannot sign transactions. However, they can permanently see your entire balance and transaction history, and if they also obtain any single child private key from that account, they could derive your account's master private key.

Does Ethereum use xPub keys?

Ethereum wallets are HD wallets under the hood, but because most users transact from a single primary 0x address rather than rotating fresh UTXO addresses on every spend, Ethereum portfolio tools simply track your public 0x address instead of an xPub.

Where do I find my xPub on Ledger or Trezor?

In Ledger Live, open your Bitcoin account → Wrench icon → Advanced Logs. In Trezor Suite, select your Bitcoin account → Details → Show Public Key (XPUB).

Julia Zakharchuk
Written by7+ Years Experience
Julia Zakharchuk· Senior Crypto Author & Web3 Analyst

Julia, an accomplished crypto and blockchain professional, is known for her insightful YouTube channel "MoneyFest."

Crypto Exchanges & TradingNFTs & Digital CultureHardware & Software WalletsDeFi & Yield Protocols
Vinny Leow

Independently Fact-Checked by Vinny Leow

Founder of CRT Labs · Chief Ecosystem Officer at Partisia Blockchain

Editorial Standards

Related Comparisons & Crypto Wiki Terms

Explore independently benchmarked comparisons and fact-checked Coinweb research on this topic.