Bitcoin Forum

Bitcoin => Wallet software => Topic started by: seolein on January 12, 2024, 10:16:07 PM



Title: Ledger Nano S to Sparrow, no balance shown / completely different derviation
Post by: seolein on January 12, 2024, 10:16:07 PM
i followed the sparrow guide to add my ledger nano S in Sparrow via import Keystores - when I do the derviation in sparrow shows m/84'/0'/0' but in ledger live under "advanced" for my bitcoin account I can see 49'/0'/0'/0/11


i tried to add up to 10 accounts in sparrow via the "add account" option but none of them shows the balance i have in Ledger Live on my bitcoin account..

can anyone help?


Title: Re: Ledger Nano S to Sparrow, no balance shown / completely different derviation
Post by: RickDeckard on January 13, 2024, 11:29:24 AM
The derivation used in your sparrow wallet (m/84'/0'/0') is known as BIP 84 ( generates bc1addresses) and the one you are using on Ledger Live is BIP 49 (49'/0'/0') that generates addresses starting with 3... While bc1 addresses are Native Segwit (P2WPKH) , addresses starting with 3 are Nested Seqwit (P2WPKH-P2SH).

While setting up your Sparrow Wallet in the new wallet menu have you selected "P2WPKH-P2SH" for the script type? This is the menu that appears right before you have to click on “Connected Hardware Wallet”.

As a note, if you are interested in learning more about how derivation paths work this[1] is a great resource to read.

[1]https://learnmeabitcoin.com/technical/derivation-paths#bip-49-m490000 (https://learnmeabitcoin.com/technical/derivation-paths#bip-49-m490000)


Title: Re: Ledger Nano S to Sparrow, no balance shown / completely different derviation
Post by: o_e_l_e_o on January 13, 2024, 01:44:56 PM
While setting up your Sparrow Wallet in the new wallet menu have you selected "P2WPKH-P2SH" for the script type? This is the menu that appears right before you have to click on “Connected Hardware Wallet”.
This is the right answer. You want to Sparrow to create a keystore at m/49'/0'/0', using the default account. It will then generate addresses starting at m/49'/0'/0'/0/0, meaning the address you see in Ledger Live at the derivation path you gave will be the 12th address in the wallet.


Title: Re: Ledger Nano S to Sparrow, no balance shown / completely different derviation
Post by: seolein on January 13, 2024, 07:46:16 PM
that was it. thanks guys!