2

What command generates BTC legacy address in electrum?

here is a sample command:

createnewaddress()

1 Answer 1

3

Command to create new address is same as you mentioned in the question:

createnewaddress()

You can only create P2PKH (legacy) addresses in a wallet with 'standard' seed:

Command to create a standard seed:

make_seed(seed_type="standard")

'standard' can be replaced by 'segwit' for a wallet with bech32 addresses

Create new wallet with the seed returned from above command:

File -> New -> Standard Wallet -> I already have a seed

2
  • File -> New -> Standard Wallet -> I already have a seed is not working default is bech32 address cannot change to legacy or script address.
    – Dam Yi
    Commented May 30, 2021 at 22:23
  • If you enter a "standard" seed you will see standard in seed type else if you enter "segwit" seed you will see segwit in seed type
    – user103136
    Commented May 30, 2021 at 22:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.