I'm trying to convert a Segwit YPUB address I got from a Ledger Wallet to a Legacy XPUB address in order to query the transactions from the wallet. I've yet to find a reliable API that supports YPUB and I'm using Blockchain.info to fetch the information for Bitcoin.

While I've tried multiple methods to convert a YPUB to XPUB (getting the same addresses with every method I've found - changing the header with the network specific magic key), I don't see the balance on the resulted XPUB address. It shows 0 balance.

Is it possible that a converted address would display the balance of the original address?

Thanks, Rares


It's not possible access funds in SegWit addresses (actually UTXOs) as if they were in legacy addresses. A SegWit address and a legacy address with the same public key map to different addresses, hence they don't share the same funds.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.