Skip to content

Unable to import type "3" address into Electrum #446

Closed Answered by mccwdev
binarweb asked this question in Q&A
Discussion options

You must be logged in to vote

Use the same script_type 'p2sh_p2wpkh' in both Bitcoinlib and Electrum.

pkwif = 'Kwzph4cjwh5jQFL31iMu7aXJrBkcSeYQ4a6Ydktg1KJVjX6Uvv9W'
k = Key(pkwif)
print(k.address(script_type='p2sh_p2wpkh'))

Import in Electrum: p2wpkh-p2sh:Kwzph4cjwh5jQFL31iMu7aXJrBkcSeYQ4a6Ydktg1KJVjX6Uvv9W
and addresses should be the same

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mccwdev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #444 on February 23, 2025 15:47.