Xpub address example. Addresses that start with 3 are P2SH.


Xpub address example How to send and receive messages on sockets. Sep 14, 2020 · “XPUB” may sound scary for non-technical beginners, but as you will see with this step-by-step tutorial, it is in reality a very easy and useful tool. For example, let's take the Dash xpub from a previous example: from cryptos import * coin = Dash() xpub = 'xpub-some-xpub-key' wallet = coin. Addresses that start with 3 are P2SH. Managing multiple addresses for a single Bitcoin wallet can be cumbersome. Oct 23, 2025 · The extended public key (xpub) is the master public key of an account. Examples: xpub6CUGRUonZSQ4TWtTMmzXdrXDtypWKiKrhko4egpiMZbpiaQL2jkwSB1icqYh2cfDfVxdx4df189oLKnC5fSwqPfgyP3hooxujYzAu3fDVmz tpubD6NzVbkrYhZ4WLczPJWReQycCJdd6YVWXubbVUFnJ5KgU5MDQrD998ZJLNGbhd2pq7ZtDiPYTfJ7iBenLVQpYgSQqPjUsQeJXH8VQ8xA67D How can I do this? Extended public keys (xpub key in short) are mostly used by wallet providers such as Ledger, Exodus, Trezor, Bitbox, and others. If you use the same address for each and every payment, the Nov 23, 2022 · @swan-bitcoin/xpub-lib — A JavaScript library derives bitcoin addresses from extended public keys. What is an xPub Key? In order to receive Bitcoin payments, a separate Bitcoin address must be created for each payment. The answer given is essentially Nov 12, 2025 · This guide demonstrates how to look up the address balance for a Bitcoin wallet using Quicknode's Blockbook RPC Add-On. Note: Some wallets have different instructions on how to source this particular wallet address format. watch_wallet(xpub) wallet. View BTC xPub I. For example, the default for Ethereum is m/44'/60'/0'/0 or incl. You can't find the xPub key from a hash. An xPub (Extended Public Key) is a type of cryptographic key used in hierarchical deterministic (HD) wallets for cryptocurrencies like Bitcoin. Jan 31, 2023 · How to Generate Bitcoin Address (bech32 format) Bitcoin addresses are used to receive and send transactions on the Bitcoin network, that’s not news. Therefore, you can have a single extended private key, and use it as the source for all the child private keys and public keys in your wallet. SLIP-132 format keys can be used, but they will be converted and stored in BIP-32 format internally (and in future exports). is_watching_only wallet. For receiving funds, the BitBoxApp default (zpub /Native Segwit) is best for low fees. Derivation reports show privkey (wif encoded), xprv, xpub, and address. You can't retrieve your xpub directly from Metamask, MEW, or any other online wallet that I'm aware of. Supports xpub, ypub, and zpub extended public keys and their testnet equiv­a­lents. The ultimate goal is to find Bitcoin balances and transactions. ) Your Bitcoin xPub is the master public key that was used to generate all of the public bitcoin addresses for your wallet. The following example derives the first address of the first account from an xpub on mainnet. All API's I've found so far don't offer it (e. Which format should I use? Always use the most modern format supported by the service you are connecting to. Getting the xpub from your hardware/software wallet Here are some examples of how you can find your xpub key depending on the wallet you're using. It focuses solely on Bitcoin (BTC) xPubs. To put it simply, all these Jun 21, 2022 · xpub is the oldest format of extended public key address – that’s where the e (‘x’)tended comes from! In a lot of applications, it’s become shorthand to mean extended public key, rather than ‘extended public key that only generates legacy addresses’. (For example, exporting an xpub/ypub/zpub from Ledger Live to use in some other wallet or tool. The fourth level serves to indicate the purpose of the address being produced. This is usually a dropdown menu. We’ll cover: How to create and work with ZeroMQ sockets. Dec 14, 2020 · I was wondering if there are any good X,Y,Zpub converter tools that any of you are aware of. (For example, those seeking to export an xpub/ypub/zpub from Ledger Live to use in some other wallet or tool. An xpub wallet address starts with the "xpub" characters in the address. This means that an xPub will not give you access to the funds in a wallet, but the user can also view the child wallet’s addresses, transactions, and balances. Introduction In UTXO-based cryptocurrencies like Bitcoin, change addresses are used to send back the excess amount beyond the intended recipient's address. Xpubs, ypubs, and zpubs all allow a wallet to generate a deterministic tree of public keys, but each form of extended public key instructs a wallet to derive different address types. Convert: Click the "Convert" button to generate the key in the new format. Furthermore, an extended private key can have a corresponding Dec 28, 2022 · Most modern bitcoin wallets are HD wallets. In other words, xpub is like a master key that can generate a series of public keys for receiving Bitcoin in your wallet. 12838590 BTC Unconfirmed Learn to create a Bitcoin wallet, find xPub keys in various wallets, and understand xPub risks with our comprehensive, easy-to-follow guide. What is a XPUB? To put it simply, many modern Bitcoin wallets (called “HD” for “Hierarchical Deterministic”) generate many addresses automatically, to provide users better privacy and convenience. Jun 27, 2024 · Beginning with entropy If a wallet is “a collection of addresses controlled by the same keys in the same way,” it raises a question about which gets created first: the controlling keys, or the addresses themselves? The answer is the keys—in order to build the addresses, critical information must first come from the keys. An Example So now that we have gone through why you would use XPub/XSub, lets now look at an example that follows the above description. In this blog post, I will explain how Ledger generates addresses from the seed for your crypto assets. Jul 14, 2021 · In order for this infinite number of public Bitcoin addresses to be created automatically, an Extended Public Address, or xPub for short, is required. It's a way to create multiple addresses without sharing private keys. XPUB, YPUB and ZPUB denote different standards to derive wallet addresses. It allows users to generate an unlimited number of public addresses from a single master key, facilitating easier management of multiple addresses without compromising security. The Bitcoin Extended Public Key, or xPub for short, is a cryptographic key that simplifies this process while maintaining… Apr 23, 2018 · 2 I have a need to generate a new extended public key (xpub). If I convert my zpub to a ypub, does it change May 20, 2025 · An xPub key allows users to generate multiple unique public key addresses, enhancing privacy while maintaining single-wallet control. The proxy opens an XSUB socket, an XPUB socket, and binds each to well-known IP addresses and ports. Tatum, Moralis, Quicknode, ). Jan 27, 2025 · An xPub, or extended public key, is a valuable privacy tool that works by generating multiple addresses for the same account and creating read-only wallets. Aug 21, 2025 · The prefix (xpub, ypub, or zpub) only changes the address format the key generates, not its security. ) For more info see SLIP-0132. Protect your digital assets xPub xpub6-fDVmz Extended Public Keys are used to deterministically generate a collection of Bitcoin addresses Confirmed Aug 21, 2025 · Select output format: Choose the format required by your third-party service (e. Aug 5, 2025 · Extended Keys Keys that can derive new keys Greg Walker 05 Aug 2025 Download PDF BIP 32 An extended key is a private key or public key that can be used derive new keys in an HD wallet. Thanks to the xpub, Ledger Wallet then generates Apr 15, 2021 · Learn how to use xPub Watch-Only addresses to monitor your cryptocurrency wallets securely with Vault12. Why You Need An xPub Key The xPub key is the master key that all of your addresses are made from. The zmq_subscriber subscribes to messages with the XPUB endpoint on the topic interesting_topic. You can learn more about xPubs here. It should be the XPUB at the derivation path, not the master key. g. MWEB, SegWit or Taproot) Addresses are prefixed with a single version byte, for two reasons: 1) for human readability and 2) prefixes specific to Litecoin. The online version of this tool should only ever be used for working with extended public keys (xpub, etc) or for testing/education purposes Sep 24, 2024 · Given that a wallet is a collection of addresses, the next step is to navigate from the xpub to the plain public key children which will build the addresses. xPub xpub6-fDVmz Extended Public Keys are used to deterministically generate a collection of Bitcoin addresses Confirmed 0. , xpub or ypub). The fingerprint of the XPUB is used to label it in this file. As the name suggests, an Xpub doesn’t contain information about private keys, but only public ones. An extended public key, or xpub, is a public key which can be used to derive child public keys as part of a hierarchical deterministic wallet. Oct 4, 2021 · If a web application needs to be able to provide addresses on demand, the solution is to use a watch wallet, generated from the xpub. What is a public key (XPUB)? An Extended Public Key (XPUB) is a cryptographic string that allows anyone to generate and see all the addresses your wallet controls for Bitcoin & for other coins that use Bitcoin's UTXO-based model, like Dogecoin, Litecoin, Cardano, Bitcoin Cash & Zcash. A zpub is a form of extended public key (xpub) which follows an additional standard defined in BIP 84. Note: Technically speaking, the Bitcoin extended public key for your Kraken Wallet is called a "zPub" which is an enhanced form of xPubs. I was inspired to ask this qu Using a new address for each transaction helps protect your privacy. May 29, 2022 · Knowing the xpub won't help you understand that transaction An address used 46699 times receiving hundreds of millions of dollars is probably one that belongs to an exchange. Exporting the Example 2: $ xpub-scan xpub6C44dXs7p -a 1 --from-index 29 [addresses at account 0, from index 29 until no active address] Note: in order to perform the analysis in this context, Xpub Scan needs to pre-derive addresses. This is a quick way to understand your Bitcoin (BTC) balance. An xPub (Extended Public Key) is a cryptographic key used in hierarchical deterministic wallets. Key Takeaways Bitcoin protects user privacy by automatically generating a wallet address for each new transaction. Enter the wallet xpub, ypub, or zpub address. The zmq_proxy creates the XPUB/XSUB proxy for the messaging, it will create the appropriate ports and sends a welcome message when clients connect to the XPUB socket. Can someone please suggest how I can find underlying addresses (or balance/transactions) from an xpub, zpub, or ypub bitcoin address, using an API or offline tool? I'm a developer working on an application. ), get the balances of its derived active addresses and the associated list of operations, or check whether an address has been derived from it Dec 18, 2024 · The xpub itself The xpub is needed to calculate the addresses for the wallet, so that the total wallet balance can be discovered and monitored, and new deposits can be made. Mar 3, 2017 · I have a follow-up to How to implement Pub-Sub Network with a Proxy by using XPUB and XSUB in ZeroMQ(C++)? That question requested a C++ proxy using XSUB and XPUB. xPub, along with its evolutions yPub and zPub, allows users to easily track all of their transactions across all of their different wallet addresses. They offer an additional level of security in contrast to pure publi Jan 14, 2025 · Raffle, Meet Bitcoin In this analogy, the entire top row of the roll is the xpub, and the individual tickets in the top row are used by your Bitcoin wallet software to generate addresses. xPubs are particularly useful for businesses and services that need to Dec 28, 2022 · Tech | 12/28/2022 Understanding Crypto Addresses and Derivation Paths in Ledger Live When you buy a Ledger Nano and use it for the first time, you are required either to import an existing seed or to create a new one randomly. Dec 6, 2024 · An xPub, or Extended Public Key, represents a series of Bitcoin addresses within Hierarchical Deterministic (HD) wallets. Given an extended public key (xpub, Ltub, etc. And example code/tools I've found on the Bitcoin users may find this tool helpful if they are trying to import watch-only wallets into software that expects a specific version of extended public key with regard to the paths used for key derivation. Jun 17, 2025 · A practical example: Many accounting or tax tools ask for an xPub to automatically read out all incoming payments from a wallet and simplify bookkeeping. If no purpose is given, it will default to P2WPKH (Native SegWit). In order for this infinite number of public Bitcoin addresses to be generated automatically, an Extended Public Address, or xPub for short, is required. the trailing / [address_index] More details here . Oct 18, 2018 · An HD wallet tree is represented by derivation paths to the first address node. This Bitcoin address is a public address, as it can be shared with anyone. Nov 5, 2025 · This guide provides steps to analyze a Bitcoin (BTC) extended public key (xPub) with a block explorer. Unspent Transaction Outputs (UTXO) represent the unspent cryptocurrency in your wallet. All child public keys, which are used to view your transaction histories and receive crypto transactions, are derived from it. By default, it derives 2,000 addresses per account number. Hex to Binary: Converts the private key into a binary string. Overview There are 3 programs zmq_proxy, zmq_producer and zmq_subscriber. Create address book record: Creates a shared company-level address book entry for this wallet. Aug 28, 2024 · Learn the key differences between a single Bitcoin address and an XPUB. To generate an address, you need to have a …. This is the main use case for XSUB and XPUB. This means they generate private keys from seed words and provide an extended public key to derive bitcoin addresses. Discover how XPUBs enhance your privacy, streamline transactions, and when it’s best to use them with services like Bittr. Example Usage yarn add @swan-bitcoin/xpub-lib Use addressFromExtPubKey to derive a single addresses. The rest of the line, after the colon is the XPUB for that signer. Jul 4, 2024 · xPub is a public key used in Bitcoin wallets to generate new addresses without exposing the private key, enhancing security and privacy. Every Bitcoin payment made to a Bitcoin address generated from the xPub key will be credited to your own Bitcoin wallet. How it works Your Ledger device generates a unique xpub for every account you create. Hex to XPRV/XPUB: Derives the extended private (xprv) and public (xpub) keys from the private key. For instance, a tool that could convert an Xpub into the equivalent Zpub. Xpubs are not shuffled in this way, however your addresses created (and composing the xpub) are likely to change as you continue to add new accounts/addresses, and use the derivation path originating from your private key (aka the 24 word recovery phrase). The H means hash. Specifically, zpubs instruct a wallet to derive native SegWit addresses, which use either P2WPKH or P2WSH NOTES: T he XPUB key does not give Ledgible access to spend funds in your wallet, but rather read-only access so that Ledgible can derive the same wallet addresses used by your XPUB wallet. In this chapter, we’re going to get our hands dirty and start to learn how to use these tools in real programs. Nov 12, 2019 · What is an xPub? Every child key pair can define an xPub (Extended Public Key). Different address types for specific features (e. The proxy has to forward these subscription messages from subscriber side to publisher side, by reading them from the XSUB socket and writing them to the XPUB socket. Thanks to the xpub, Ledger Wallet then generates For example, Cardano uses an extended UTXO model with a stake key system instead of the xPub framework. If you reuse the same address, anyone you share it with can view the balance and transaction history tied to that address. The key difference is that zPubs instruct a wallet to derive native SegWit addresses, which Kraken Wallet supports. Hex to Decimal: Translates the private key into its decimal representation. All public addresses of a Ledger Wallet™ (formerly Ledger Live) crypto account are generated from an xpub, which is why you should handle it with caution to protect your privacy. Other blockchains may adapt the UTXO model for features like privacy or smart contracts, requiring different address management methods that prioritize specific functionalities over simple tracking with xPub keys. hd-wallet-derive is a command-line tool that derives bip32 addresses and private keys for Bitcoin and many altcoins. Oct 30, 2022 · An xPub address, or an extended address, is a type of public key representing a collection of public keys or addresses. Understanding XPUBs is essential for Bitcoin users, and, like many concepts in Bitcoin, they may seem complex Oct 23, 2025 · The extended public key (xpub) is the master public key of an account. Blockchain test oracle and forensics tool. Copy and use: Copy the newly converted key and paste it into your third-party service. Let dive into how an xpub is useful and how to get your wallet xpub key. @swan-bitcoin/xpub-cli — A small command-line tool to derive and validate bitcoin addresses from extended public keys. Analysis for xPubs from other Bitcoin-like accounts, including Litecoin (LTC), Bitcoin Cash (BCH), or Zcash (ZEC), is not currently supported. Hex to Address: Generates both compressed and uncompressed addresses from the private key. Then, all other processes connect to the proxy, instead of to each other. Some retailers who accept Bitcoin payments also use an xPub to automatically generate a fresh receiving address for every order. Including the xpub in the wallet configuration allows for these actions to be taken without the seed phrase or any private keys present. However, if you use different addresses each time you receive crypto, they would need access to your xpub or zpub to see your full transaction history and balance. It lets users receive Bitcoin to different addresses while keeping the core private keys offline. 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. new_receiving_address() Chapter 2 - Sockets and Patterns # In Chapter 1 - Basics we took ZeroMQ for a drive, with some basic examples of the main ZeroMQ patterns: request-reply, pub-sub, and pipeline. What Is an xPub Key? XPub, short for extended public key, is the master public key to your cryptocurrency account. It provides step-by-step instructions on retrieving the balance of a Bitcoin address and integrating it into your project using Quicknode's API. qmhukv qkipw onjycr wxmny xmne siqikz suot uyrqouc mrorw nktr yjqdjp pzgrn yeyr hdg klmmbb