• About
  • FAQ
  • Earn Bitcoin while Surfing the net
  • Buy & Sell Crypto on Paxful
Newsletter
Approx Foundation
  • Home
    • Home – Layout 1
  • Bitcoin
  • Ethereum
  • Regulation
  • Market
  • Blockchain
  • Business
  • Guide
  • Contact Us
No Result
View All Result
  • Home
    • Home – Layout 1
  • Bitcoin
  • Ethereum
  • Regulation
  • Market
  • Blockchain
  • Business
  • Guide
  • Contact Us
No Result
View All Result
Approx Foundation
No Result
View All Result
Home Bitcoin

Derive addresses from Electrum master xpub

Moussa by Moussa
July 16, 2025
in Bitcoin
0
189
SHARES
1.5k
VIEWS
Share on FacebookShare on Twitter


I am developing some code to derive addresses from different master public keys extracted from a series of wallets for some experiments I want to conduct. My code is currently able to work with most wallets I’ve tried to use, but Electrum seems to fail, as the xpub that can be extracted from Electrum app is not from the regular derivation path m/84/0/0 but from m/0h, causing this lines of code:

Related articles

What Does The SpaceX IPO Have To Do With The Dogecoin Price?

What Does The SpaceX IPO Have To Do With The Dogecoin Price?

March 30, 2026
Over Half Of US Crypto Users Don’t Understand This Scary Tax Rule

Over Half Of US Crypto Users Don’t Understand This Scary Tax Rule

March 30, 2026
xpub_str="zpub6restofthekey..."
bip_obj = Bip84.FromExtendedKey(xpub_str, Bip84Coins.BITCOIN)
addr = bip_obj.Change(Bip44Changes.CHAIN_EXT).AddressIndex(index).PublicKey().ToAddress()

To throw the following exception: "error": "Depth of the public-only Bip object (<bip_utils.bip.bip32.bip32_key_data.Bip32Depth object at 0x000001D6E7D885D0>) is below account level or beyond address index level".
At first I thought the issue might be using zpub instead of xpub, but other wallets such as Trezor Suite or Green also use zpub and I’ve been able to successfully generate addresses with the code I showed above.

If anyone knows how I can workaround this issue, or some alternative way of computing addresses from the Electrum xpub, I’d be very grateful.



Source link

Share76Tweet47

Related Posts

What Does The SpaceX IPO Have To Do With The Dogecoin Price?

What Does The SpaceX IPO Have To Do With The Dogecoin Price?

by Moussa
March 30, 2026
0

Trusted Editorial content, reviewed by leading industry experts and seasoned editors. Ad Disclosure The imminent SpaceX IPO has drawn attention...

Over Half Of US Crypto Users Don’t Understand This Scary Tax Rule

Over Half Of US Crypto Users Don’t Understand This Scary Tax Rule

by Moussa
March 30, 2026
0

The majority of crypto customers still don’t understand how crypto is taxed, mistakenly believing simple transfers trigger tax events. Related...

Pro-AI Group to Spend $100 Million on United States Midterm Elections – News Bytes Bitcoin News

Pro-AI Group to Spend $100 Million on United States Midterm Elections – News Bytes Bitcoin News

by Moussa
March 30, 2026
0

Innovation Council Action (ICA) announces a $100 million spending plan targeting the November 8 US midterm elections to back candidates...

How do Bitcoin mining pools typically handle payout frequency versus thresholds?

blockchain – How do cryptocurrency exchanges work with so many currencies at the same time?

by Moussa
March 30, 2026
0

One way is to write software for each cryptocurrency as you suggest.A lot of it would be reusable code as...

Hoskinson Charts Cardano’s Path To Quantum Resistance

Cardano Founder Just Released A Free Book On Zero-Knowledge

by Moussa
March 30, 2026
0

Trusted Editorial content, reviewed by leading industry experts and seasoned editors. Ad Disclosure Cardano founder Charles Hoskinson has released a...

Load More

youssufi.com

sephina.com

[vc_row full_width="stretch_row" parallax="content-moving" vc_row_background="" background_repeat="no-repeat" background_position="center center" footer_scheme="dark" css=".vc_custom_1517813231908{padding-top: 60px !important;padding-bottom: 30px !important;background-color: #191818 !important;background-position: center;background-repeat: no-repeat !important;background-size: cover !important;}" footer_widget_title_color="#fcbf46" footer_button_bg="#fcb11e"][vc_column width="1/4"]

We bring you the latest in Crypto News

[/vc_column][vc_column width="1/4"][vc_wp_categories]
[/vc_column][vc_column width="1/4"][vc_wp_tagcloud taxonomy="post_tag"][/vc_column][vc_column width="1/4"]

Newsletter

[vc_raw_html]JTNDcCUzRSUzQ2RpdiUyMGNsYXNzJTNEJTIydG5wJTIwdG5wLXN1YnNjcmlwdGlvbiUyMiUzRSUwQSUzQ2Zvcm0lMjBtZXRob2QlM0QlMjJwb3N0JTIyJTIwYWN0aW9uJTNEJTIyaHR0cHMlM0ElMkYlMkZhcHByb3gub3JnJ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MjBhY2NlcHQlMjB0aGUlMjBwcml2YWN5JTIwcG9saWN5JTNDJTJGbGFiZWwlM0UlM0MlMkZkaXYlM0UlM0NkaXYlMjBjbGFzcyUzRCUyMnRucC1maWVsZCUyMHRucC1maWVsZC1idXR0b24lMjIlM0UlM0NpbnB1dCUyMGNsYXNzJTNEJTIydG5wLXN1Ym1pdCUyMiUyMHR5cGUlM0QlMjJzdWJtaXQlMjIlMjB2YWx1ZSUzRCUyMlN1YnNjcmliZSUyMiUyMCUzRSUwQSUzQyUyRmRpdiUzRSUwQSUzQyUyRmZvcm0lM0UlMEElM0MlMkZkaXYlM0UlM0NiciUyRiUzRSUzQyUyRnAlM0U=[/vc_raw_html][/vc_column][/vc_row]
No Result
View All Result
  • Contact Us
  • Homepages
  • Business
  • Guide

© 2024 APPROX FOUNDATION - The Crypto Currency News