<p>Different networks use different address prefixes.</p>
<p>In Bitcoin mainnet:</p>
<ul>
<li>P2PKH addresses: 1...</li>
<li>P2SH addresses 3...</li>
<li>P2WSH and P2WPKH addresses: bc1q...</li>
<li>P2TR addresses: bc1p... (see <a href="https://github.com/bitcoin/bips/blob/master/bip-0341.mediawiki" rel="noreferrer">BIP 341</a>)</li>
</ul>
<p>In Bitcoin testnet and signet (see <a href="https://github.com/bitcoin/bips/blob/master/bip-0325.mediawiki" rel="noreferrer">BIP 325</a>):</p>
<ul>
<li>P2PKH addresses: m... or n...</li>
<li>P2SH addresses: 2...</li>
<li>P2WSH and P2WPKH addresses: tb1q...</li>
<li>P2TR addresses: tb1p...</li>
</ul>
<p>Bitcoin Core's regtest network:</p>
<ul>
<li>P2PKH addresses: m... or n...</li>
<li>P2SH addresses: 2...</li>
<li>P2WSH and P2WPKH addresses: bcrt1q...</li>
<li>P2TR addresses: bcrt1p...</li>
</ul>
<p>See also <a href="https://en.bitcoin.it/wiki/List_of_address_prefixes" rel="noreferrer">https://en.bitcoin.it/wiki/List_of_address_prefixes</a></p>

CC BY-SA 4.0
2021-05-13T15:56:58.493Z
2021-05-13T16:28:42.383Z
2021-05-13T16:28:42.383Z
Pieter Wuille
<p>I'm working on a bitcoin project, and understand the differences between the wallet address which start with 1, 3, or bc1. I am looking to generate a wallet address that starts with 1.</p>
<p>I have seen the answers posted <a href="https://bitcoin.stackexchange.com/questions/92815/how-to-generate-legacy-receiving-address-in-bitcoin-core-0-19-x-x">here</a>, this is more or less the same info I have read elsewhere. However, when I create a legacy address via this method, it starts with an 'm'. When I create a wallet address that is not legacy, it starts with a 2.</p>
<ol>
<li>Am I missing, or not understanding something? Why are my addresses starting with an 'm' or 2, instead of 1, 3, or 'bc1'?</li>
<li>How do I create a wallet address with a '1' prefix it Bitcoin Core</li>
</ol>
<p>Thanks in advance!</p>

CC BY-SA 4.0
2021-05-13T15:44:51.073Z
You're probably using a test network. The equivalent of P2PKH addresses (1... on mainnet) is m... there. The equivalent of P2SH addresses (3... on mainnet) is 2... there. The equivalent of P2WSH and P2WPKH addresses (bc1q... on mainnet) is tb1q... there
Pieter Wuille
CC BY-SA 4.0
2021-05-13T15:46:44.467Z
Ahhhh, I AM using the test network! Let me see if this resolves the issue. If so, I.ll mark you as the answer.
Jeff
CC BY-SA 4.0
2021-05-13T15:54:54.817Z
Confirming this worked, thanks @Pieter Wuille! If you submit this as an answer, I'll mark it as such.
Jeff
<bitcoin-core><wallet><address>
Different address prefixes for different address types / network combinations
Jeff
# Different address prefixes for different address types / network combinations

(Asked by: username_0 on 2021-05-13)

I'm working on a bitcoin project, and understand the differences between the wallet address which start with 1, 3, or bc1. I am looking to generate a wallet address that starts with 1.

I have seen the answers posted [here](https://bitcoin.stackexchange.com/questions/92815/how-to-generate-legacy-receiving-address-in-bitcoin-core-0-19-x-x), this is more or less the same info I have read elsewhere. However, when I create a legacy address via this method, it starts with an 'm'. When I create a wallet address that is not legacy, it starts with a 2.

1. Am I missing, or not understanding something? Why are my addresses starting with an 'm' or 2, instead of 1, 3, or 'bc1'?
2. How do I create a wallet address with a '1' prefix it Bitcoin Core

Thanks in advance!

**Tags:** bitcoin-core, wallet, address

> **Comments:**
> **username_1**: You're probably using a test network. The equivalent of P2PKH addresses (1... on mainnet) is m... there. The equivalent of P2SH addresses (3... on mainnet) is 2... there. The equivalent of P2WSH and P2WPKH addresses (bc1q... on mainnet) is tb1q... there  
> **username_0**: Ahhhh, I AM using the test network! Let me see if this resolves the issue. If so, I.ll mark you as the answer.  
> **username_0**: Confirming this worked, thanks @username_1! If you submit this as an answer, I'll mark it as such.  

---

## 1 answers

### Answer by username_1 on 2021-05-13. Score: 5 | Accepted answer

Different networks use different address prefixes.

In Bitcoin mainnet:

* P2PKH addresses: 1...
* P2SH addresses 3...
* P2WSH and P2WPKH addresses: bc1q...
* P2TR addresses: bc1p... (see [BIP 341](https://github.com/bitcoin/bips/blob/master/bip-0341.mediawiki))

In Bitcoin testnet and signet (see [BIP 325](https://github.com/bitcoin/bips/blob/master/bip-0325.mediawiki)):

* P2PKH addresses: m... or n...
* P2SH addresses: 2...
* P2WSH and P2WPKH addresses: tb1q...
* P2TR addresses: tb1p...

Bitcoin Core's regtest network:

* P2PKH addresses: m... or n...
* P2SH addresses: 2...
* P2WSH and P2WPKH addresses: bcrt1q...
* P2TR addresses: bcrt1p...

See also <https://en.bitcoin.it/wiki/List_of_address_prefixes>


---

