Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: freddyjuarez on July 02, 2021, 09:25:41 PM



Title: BITCOIN RECEIVE ADDRESS FROM ELECTRUM DIDNT WORK WHY
Post by: freddyjuarez on July 02, 2021, 09:25:41 PM
okay so i needed to cash out some funds from a website and i chose the option to cash out by bitcoin
i tried using the bitcoin address from my ELECTRUM wallet but that didnt work the website i was trying to cash out from said invalid crypto address so i tried a few more

the only one that did work was my bitcoin wallet address from cashapp

is there a reason why only that one did work?


Title: Re: BITCOIN RECEIVE ADDRESS FROM ELECTRUM DIDNT WORK WHY
Post by: LoyceV on July 02, 2021, 09:32:24 PM
i tried using the bitcoin address from my ELECTRUM wallet but that didnt work the website i was trying to cash out from said invalid crypto address so i tried a few more
I'm guessing you used a Bech32 native Segwit address (starting with bc1q), and the website doesn't recognize them.  It's been almost 4 years since Segwit was activated, but unfortunately some sites still don't support it.


Title: Re: BITCOIN RECEIVE ADDRESS FROM ELECTRUM DIDNT WORK WHY
Post by: hosseinimr93 on July 02, 2021, 09:44:04 PM
As stated by LoyceV, the problem is probably with the address type.

If you want to withdraw bitcoin from that service to electrum, you must create a legacy wallet.
Since electrum version 4.1.0 and after that doesn't allow you to generate a legacy wallet in the GUI, you have to use console.

Go to console tab and paste the following code to get a legacy seed phrase.
(If the "console" tab is not available, click on "View" at top of the window and select "Show console".)

Code:
make_seed(seed_type="standard")

After that create a new wallet. Select "Standard wallet" and then "I already have a seed". Paste the legacy seed phrase.


Title: Re: BITCOIN RECEIVE ADDRESS FROM ELECTRUM DIDNT WORK WHY
Post by: BitMaxz on July 02, 2021, 11:19:00 PM
There are two types of wallets on Electrum Legacy or Segwit wallet. What wallet did you generate Segwit or Legacy?

The address generated from legacy looks like this below

Code:
17VZNX1SN5NtKa8UQFxwQbFeFc3iqRYhem

For Segwit or Bech32 this is what it looks like

Code:
bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4

The Segwit one is not yet supported on some websites so maybe the website where you want to withdraw BTC Segwit is not supported yet.

You can make a screenshot or tell us what is the first 3 letters of the address you use so that we can identify exactly the issue here.


Title: Re: BITCOIN RECEIVE ADDRESS FROM ELECTRUM DIDNT WORK WHY
Post by: HCP on July 03, 2021, 12:07:03 AM
If a website is saying your receive address from Electrum is invalid, then it is most likely that:

1. You have created a bech32 "native segwit" wallet in Electrum (this is the default from Electrum v4.1.0 onwards, see below)
2. The website you are attempting to withdraw from does not support bech32 "native segwit" addresses

Note that this is NOT a fault with Electrum... it is a fault with the website you are using. You should contact the support of the site involved and encourage them to update their systems to properly support SegWit.



There are two types of wallets on Electrum Legacy or Segwit wallet. What wallet did you generate Segwit or Legacy?
As of version 4.1.0, you can no longer generate Legacy wallets using the "wallet creation wizard" in Electrum. You either need to use a pre-existing Electrum legacy seed, a BIP39 seed and select "legacy" or you have to use the make_seed() command on the console (or linux commandline) and set the seed_type as "standard" and then use that seed to "restore" the legacy wallet.

Code:
make_seed(seed_type="standard")

# Release 4.1.0 - Kangaroo (March 30, 2021)
...
 * The wallet creation wizard no longer asks for a seed type, and
   creates segwit wallets with bech32 addresses. Older seed types can
   still be created with the command line.



Title: Re: BITCOIN RECEIVE ADDRESS FROM ELECTRUM DIDNT WORK WHY
Post by: freddyjuarez on July 03, 2021, 06:13:50 AM
You guys are all correct the website doesnt support SegWit addressess bc1
thanks for all the replies

btw im entering make_seed(seed_type="standard") on the console and it doesnt do anything

but i figure  a work around i started over

i really wanted to use my google aunthenticator but that option only lets me use a legacy address
so i had to ditch out being able to use google aunthenticator




Title: Re: BITCOIN RECEIVE ADDRESS FROM ELECTRUM DIDNT WORK WHY
Post by: pooya87 on July 03, 2021, 06:27:47 AM
You guys are all correct the website doesnt support SegWit addressess bc1
It may not be so wise to use a website which has developers who are incapable of implementing a very simple thing after 5 years. You have to wonder what else they can not do, like the security of their website.


Title: Re: BITCOIN RECEIVE ADDRESS FROM ELECTRUM DIDNT WORK WHY
Post by: hosseinimr93 on July 03, 2021, 07:55:55 AM
btw im entering make_seed(seed_type="standard") on the console and it doesnt do anything
The command is correct and it should work. Even if the command is not correct, it should return an error.
Did you press "Enter" button on your keyboard after pasting the command in console?

i really wanted to use my google aunthenticator but that option only lets me use a legacy address
so i had to ditch out being able to use google aunthenticator
I don't get what you mean. Do you mean you want to create a 2FA wallet in electrum?


Title: Re: BITCOIN RECEIVE ADDRESS FROM ELECTRUM DIDNT WORK WHY
Post by: khaled0111 on July 03, 2021, 09:00:34 PM
make_seed(seed_type="standard") on the console and it doesnt do anything

but i figure  a work around i started over
Are you sure you didn't make any typo? Try to copy paste the command and see if it works.
Not sure if there is any workaround for this unless you install an older version of Electrum or use the command line (even then, you will've to use the same command!).

Quote
i really wanted to use my google aunthenticator but that option only lets me use a legacy address
so i had to ditch out being able to use google aunthenticator
To create a 2fa wallet you need a 2fa seed. If you enter a legacy seed Electrum will create a legacy wallet.

I didn't try this so am not sure if it's going to work: Use the same command as above but replace seed_type="standard" with seed_type="2fa". If it generates a seed then you can use it to create a 2fa wallet.
Code:
make_seed(seed_type="2fa")


Title: Re: BITCOIN RECEIVE ADDRESS FROM ELECTRUM DIDNT WORK WHY
Post by: hosseinimr93 on July 03, 2021, 09:26:03 PM
I didn't try this so am not sure if it's going to work: Use the same command as above but replace seed_type="legacy" with seed_type="2fa". If it generates a seed then you can use it to create a 2fa wallet.
make_seed(seed_type="legacy") is not a valid command. For creating a legacy wallet using console, you should use one of the following commands.

Code:
make_seed(seed_type="standard")

Code:
make_seed(128,"","standard")


make_seed(seed_type="2fa") works. It can be used for creating a non-segwit 2FA (starting with 3) wallet in electrum while the GUI only allows you to create a segwit 2FA wallet.


Title: Re: BITCOIN RECEIVE ADDRESS FROM ELECTRUM DIDNT WORK WHY
Post by: khaled0111 on July 03, 2021, 10:01:50 PM
make_seed(seed_type="legacy") is not a valid command.
Thank you hosseinimr for correcting me, I edited my post with the correct syntax. The funny thing is that the correct syntax is already in the post I quoted. Sorry for this  :-[
 
Quote
make_seed(seed_type="2fa") works. It can be used for creating a non-segwit 2FA (starting with 3) wallet in electrum while the GUI only allows you to create a segwit 2FA wallet.

Thank you again for confirming it works. I couldn't test it myself as I don't have access to any pc right now.
Since OP want to withdraw from a service that doesn't support bech32 addresses and he want to create a 2fa wallet then his only option is to create addresses that start with "3".


Title: Re: BITCOIN RECEIVE ADDRESS FROM ELECTRUM DIDNT WORK WHY
Post by: HCP on July 03, 2021, 10:17:53 PM
btw im entering make_seed(seed_type="standard") on the console and it doesnt do anything
That is very bizarre... are you getting any error message or anything? ??? It should do something... either show you a 12 word seed or output an error... what version of Electrum were you using when trying that command? ???



but i figure  a work around i started over
What was the work around? ???


i really wanted to use my google aunthenticator but that option only lets me use a legacy address
so i had to ditch out being able to use google aunthenticator
Correct... the 2FA option generates a multisig wallet which is P2SH... and while it generates "3-type" addresses, they're not "Nested Segwit" addresses (aka P2SH-P2WPKH) which also start with "3".

Is there any reason why you can't use the 2FA option? Do you "require" segwit addresses for some reason? ???


Title: Re: BITCOIN RECEIVE ADDRESS FROM ELECTRUM DIDNT WORK WHY
Post by: hosseinimr93 on July 03, 2021, 10:30:11 PM
Correct... the 2FA option generates a multisig wallet which is P2SH... and while it generates "3-type" addresses, they're not "Nested Segwit" addresses (aka P2SH-P2WPKH) which also start with "3".
If you use the GUI for creating a 2FA wallet, electrum generates a multi-signature wallet in which the addresses start with bc1q, not with 3 and that's probably where OP's problem comes from.
In order to create a 2FA wallet in which the addresses start with 3, you have to use console.


Title: Re: BITCOIN RECEIVE ADDRESS FROM ELECTRUM DIDNT WORK WHY
Post by: HCP on July 03, 2021, 10:55:46 PM
It does? Damn... when did it start generating native segwit addresses for 2fa wallets? ???

ok... so I went and looked and it seems that support for segwit 2fa wallets was added back in 3.3.0 (https://github.com/spesmilo/electrum/blob/master/RELEASE-NOTES#L472)!!?! :o :o :o

And I'm assuming the ability to generate "Legacy" 2FA accounts was also "hidden" along with "legacy" standard wallets starting from version 4.1.0 ? ???


Title: Re: BITCOIN RECEIVE ADDRESS FROM ELECTRUM DIDNT WORK WHY
Post by: khaled0111 on July 03, 2021, 11:31:59 PM
And I'm assuming the ability to generate "Legacy" 2FA accounts was also "hidden" along with "legacy" standard wallets starting from version 4.1.0 ? ???
Yes, it was possible to choose whether you want to create a segwit 2FA wallet (bc1) or legacy 2fa wallet (3). Here is a screen shot from version 4.0.1:
https://i.imgur.com/L8lSodD.jpg

But since version 4.1.0 this option was removed and it's only possible to create segwit 2fa wallets from GUI.
For legacy you will have to use the console.