Hey folks.
I'm trying to get the seeds from two Bitcoin wallets (one standard seed and one 2fa seed) into two standard wallets using the command line:
1) Standard wallet:
electrum daemon -d
electrum o restore ?
arguments: word1 word2 word3 word4 word5 word6 word7 word8 word9 word10 word11 word12
{
"msg": "This wallet was restored offline. It may contain more addresses than displayed. Start a daemon and use load_wallet to sync its history.",
"path": "/home/user/.electrum/wallets/default_wallet"
}
electrum load_wallet
Once the wallet is loaded, I can use it just fine.
So far, so good.
2) For the 2fa wallet:
electrum daemon -d
electrum o restore ?
arguments: word1 word2 word3 word4 word5 word6 word7 word8 word9 word10 word11 word12
I get an error saying "Unexpected seed type '2fa'".
I want to change this 2fa wallet into a standard wallet through the command line.
I think there’s a way to modify the command in "electrum o restore ?" to disable the 2fa feature and convert it to a standard wallet.
Any idea what command I should use?
Thanks for your time and help.
Cheers.
How to turn a 2fa wallet into a standard wallet via command line
8 replies 336 views
You can't convert a 2FA wallet to a standard wallet or vice versa because both are different seed types that Electrum recognizes with its version number.
https://electrum.readthedocs.io/en/latest/seedphrase.html
But you can restore the 2FA wallet and export the private keys from the loaded wallet then import them into a new standard wallet.
As @hosseinimr93 pointed out, you can disable 2FA of your electrum but there is no way to convert multi-sig into single sig address type.
'Duly noted'
No, you can't.
Electrum 2FA wallet is a 2 of 3 multi-signature wallet and there are three private keys for each of addresses. There is no way to import your address with a single private key.
To OP:
If you want to disable 2FA, import the seed phrase of your 2FA wallet and choose to disable 2FA.
Take note that you don't make your wallet a standard wallet with disabling 2FA and your wallet will be still a multi-signature wallet. There is no way to turn a multi-signature wallet to single-signature wallet.
colddiamondHero Member
Posts: 623 · Reputation: 2467
#4Nov 25, 2021, 07:52 AM
You can't do it from the command line as far as I can see.
You CAN do it from the GUI.
https://electrum.readthedocs.io/en/latest/2fa.html
Don't know if you can do the GUI, but if you can't check the android phone version of electrum. I know you can restore the 2fa from there I don't know if it still requires trusted coin.
-Dave
Two of master private keys and all three master public keys can be derived from 2FA seed phrase.
Therefore, if you have access to your 2FA seed phrase, you have all the required keys for making transaction from your wallet and you don't rely on trustedcoin.
Hmm, thanks for correcting me.
That is why I always hesitate to reply regarding the technical questions cause I kind of mess up some of the time even though I am spending more and more time learning about technical aspects, I guess it's really not my cup of tea.
humbleledgerLegendary
Posts: 1027 · Reputation: 6554
#7Nov 25, 2021, 03:31 PM
Now that you know you messed up, it's best to edit your post and strike through the incorrect part. Others may read it in the future.
An easy reminder why you can't export a multisig key into a single key: a single key produces a different address format.
gr3g.0rbitHero Member
Posts: 1025 · Reputation: 2646
#8Nov 25, 2021, 04:03 PM
I think you meant to just disable 2fa so you wont have to use the authenticator app,
not necessarily convert the wallet to standard since it's still a 2-of-3 MultiSig, 2fa enabled or not.
If so, that's still not possible in the command line since the only options for restore command are:
text (seed, master key, prvKeys or addresses), passphrase (extension), password, encrypt_file and wallet_path.
Ref: github.com/spesmilo/electrum/blob/master/electrum/commands.py#L281
In an additional note, they also prevent 2fa when creating a wallet in the command line.
e.g.: electrum --o create --seed_type "2fa"
result: Unexpected seed type '2fa'
Hi.
Exactly what he meant is what he says nc50lc.
The idea is with the command line disable 2fa so you wont have to use the authenticator app.
You are right that for the restoration command there is no possibility of 2FA deactivation in the command line as it happens with the GUI.
I thought that when it could be done with the GUI that possibility would also exist with the command line.
So clarified is that technical doubt and another thing that I have learned thanks to all of you.
Thanks for your time and for your contributions.
All the best.
Related topics
- Transforming my wallet into an HD wallet bitcoin core 26 4
- Help Needed: BTC Purchase via Trust Wallet Where's My Bitcoin? 12
- Recovering a Bitcoin wallet and address 8
- CipherSeed: A Comprehensive Guide to Super-Secure Crypto Wallet Backups 5
- What derivation path does mm-gen wallet use? 3
- Looking for wallet software that supports custom P2SH redeem scripts? 19