user113958: I am trying to get along the electrum wallet command line in ubuntu. However, my exchange only accepts withdraws to canonical non-SegWit addresses (i.e. it only generates with a "bc1" prefix). Is there a way to specifically specify such an option when typing electrum createnewaddress?

user-1: 
I don't see any arguments in https://github.com/spesmilo/electrum/blob/b2be29b508deb310631cacfb51bb1561bce75ff9/electrum/commands.py#L795 to specify the address type similar to address_type used in Bitcoin Core's getnewaddress

As sipa also mentioned in the comments, "bc1" prefix is used for segwit addresses

I think Electrum uses the default address type of wallet for creating new address which is decided while creating new wallet. So you can resolve this issue by creating a new wallet and select appropriate address type.



113958: <p>I am trying to get along the electrum wallet command line in ubuntu. However, my exchange only accepts withdraws to canonical non-SegWit addresses (i.e. it only generates with a &quot;bc1&quot; prefix). Is there a way to specifically specify such an option when typing <code>electrum createnewaddress</code>?</p>
 -1: <ol>
<li><p>I don't see any arguments in <a href="https://github.com/spesmilo/electrum/blob/b2be29b508deb310631cacfb51bb1561bce75ff9/electrum/commands.py#L795" rel="nofollow noreferrer">https://github.com/spesmilo/electrum/blob/b2be29b508deb310631cacfb51bb1561bce75ff9/electrum/commands.py#L795</a> to specify the address type similar to <code>address_type</code> used in Bitcoin Core's <a href="https://bitcoincore.org/en/doc/0.20.0/rpc/wallet/getnewaddress/" rel="nofollow noreferrer">getnewaddress</a></p>
</li>
<li><p>As sipa also mentioned in the comments, &quot;bc1&quot; prefix is used for segwit addresses</p>
</li>
<li><p>I think Electrum uses the default address type of wallet for creating new address which is decided while creating new wallet. So you can resolve this issue by creating a new wallet and select appropriate address type.</p>
</li>
</ol>
