<p>Electrum stores whether to create legacy addresses or segwit addresses at the wallet level (it is part of the Electrum seed itself), hence each wallet is configured to only produce legacy addresses or only segwit addresses. It sounds like the wallet you are using is a legacy address wallet.</p>

CC BY-SA 4.0
2024-05-20T18:35:01.480Z
I imported a mixture of address types to the wallet.
Geremia
CC BY-SA 4.0
2024-05-20T19:02:40.230Z
`createnewaddress()` isn't going to give you addresses that have been imported. It should be generating new addresses, and it will do this based on the seed stored in the wallet, which indicates the address type to create.
Ava Chow
CC BY-SA 4.0
2024-05-20T20:00:32.040Z
I created a new wallet and imported a mixture of legacy and bech32 addresses. Is "the seed stored in the wallet" a legacy seed or something? It would seem a newly created wallet would have a modern seed that can generate `bench32` addresses.
Geremia
CC BY-SA 4.0
2024-05-21T02:02:58.977Z
Presumably, yes, the stored seed is one that makes legacy addresses. You can check by going to Wallet > Information and looking at the "Script type" field.
Ava Chow
CC BY-SA 4.0
2024-05-21T02:49:44.753Z
I see. It says `p2pkh`. It shows the `xpub`.
Geremia
CC BY-SA 4.0
2024-05-19T03:31:29.703Z
2024-05-19T03:31:29.703Z
Ava Chow
<p>Why does Electrum's <code>createnewaddress()</code> (or &quot;Create Request&quot;) only return legacy addresses? How do I make it create <code>bech32</code> addresses?</p>

<wallet><electrum><address-generation><bech32-address><p2pkh>
Why does Electrum's createnewaddress() only return legacy addresses?
Geremia
# Why does Electrum's createnewaddress() only return legacy addresses?

(Asked by: username_0 on 2024-05-18)

Why does Electrum's `createnewaddress()` (or "Create Request") only return legacy addresses? How do I make it create `bech32` addresses?

**Tags:** wallet, electrum, address-generation, bech32-address, p2pkh


---

## 1 answers

### Answer by username_1 on 2024-05-19. Score: 2

Electrum stores whether to create legacy addresses or segwit addresses at the wallet level (it is part of the Electrum seed itself), hence each wallet is configured to only produce legacy addresses or only segwit addresses. It sounds like the wallet you are using is a legacy address wallet.

> **Comments:**
> **username_0**: I imported a mixture of address types to the wallet.  
> **username_1**: `createnewaddress()` isn't going to give you addresses that have been imported. It should be generating new addresses, and it will do this based on the seed stored in the wallet, which indicates the address type to create.  
> **username_0**: I created a new wallet and imported a mixture of legacy and bech32 addresses. Is "the seed stored in the wallet" a legacy seed or something? It would seem a newly created wallet would have a modern seed that can generate `bench32` addresses.  
> **username_1**: Presumably, yes, the stored seed is one that makes legacy addresses. You can check by going to Wallet > Information and looking at the "Script type" field.  
> **username_0**: I see. It says `p2pkh`. It shows the `xpub`.  

---

