This is a tutorial to help you generate P2SH bitcoin addresses to withdraw bitcoin from non-custodial apps like LocalCryptos.
If you are a P2P or DEX crypto trader, you probably know that to receive BTC from a decentralized app, you need to use a SegWit bitcoin address.
- If you want to learn more about SegWit, head over to the ATNET Glossary.
Segwit addresses are not all the same
However, in 2020, any regularly updated bitcoin wallet app will prefer bech32 addresses. Bech32 addresses start with
The problem is that some non-custodial exchanges will only let you withdraw into a bitcoin address that starts with
3. Bitcoin SegWit addresses starting with
3 are called P2SH addresses (pay-to-script-hash).
Electrum lets you generate P2SH address set from bitcoin seed
Good news is you can generate a set of P2SH bitcoin addresses from your seedphrase in Electrum wallet. It is easy to do, but you need to know how to do it - the Electrum wallet provides no walkthrough for it.
If you worry about messing up your wallet, generate a new seedphrase first. It will work just the same.
Step-by-step: Generate P2SH addresses in Bitcoin Electrum
This method works on a laptop with any operating system. The steps are always the same.
Before you start typing your seed anywhere, check with
https://electrum.org/#download that you have the latest version of the wallet.
Step 1: Get your seedphrase, or generate a new one.
If you don’t want to work with the seedphrase of a wallet you are currently using, that’s fine. Just start creating a new wallet up to the step where you get the seedphrase.
Write the seed down and close the Electrum dialog where you were creating the new wallet.
Step 2: Start a wallet restoration process.
Open the Electrum wallet and in the File menu, select “New/Restore”.
Select you want “Standard wallet” and in the next step that you “Already have a seed”.
Step 3: Type down your seedphrase and go to the advanced options.
Below the box into which you have to type in your seedphrase, you should see a button for extra “Options”. Click that, select bip39 and ignore the warning that will be generated for you then.
Step 4: Select derivation path “p2sh-segwit”.
The derivation path of “p2sh-segwit” should be one of the options after typing in the seed. You can double check the derivation string below the options. It should contain the number 49 because your selection is based on BIP49. Don’t change anything in there.
Step 5: Create the wallet.
Your wallet should now be ready to use. Check your addresses to see that they all start with a