Bitcoin Forum
December 13, 2025, 07:24:02 PM *
News: Latest Bitcoin Core release: 30.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Identifying Bitcoin Address By Format  (Read 232 times)
Obim34 (OP)
Hero Member
*****
Offline Offline

Activity: 826
Merit: 576


Visit Campaign Manager |TG ID- @LT_Mouse


View Profile WWW
July 09, 2025, 01:48:27 PM
Merited by igebotz (5), Mia Chloe (2), Charles-Tim (1), Zaguru12 (1), Felicity_Tide (1), Solodoski (1)
 #1

We don't hear it common but over and over there has been transfer gone wrong when sending Bitcoin to address, either to a wrong address or to a wrong network. Identifying address by format eradicate such mistakes because it helps decide what type of wallet or transaction is in use before sending.

Address Format|Identify By Prefix|
Legacy (P2PKH)|Begins with "1" - Bitcoin core and old Bitcoin mobile wallets|
P2SH|Begins with "3" Still part of segwit but older version|
Native Segwit (Bech32)|Begins with "bc1q" - modern and updated version of segwit|
Taproot Segwit (Bech32m)|Begins with "bc1p" -  wallets like BlueWallet, Electrum and Sparrow wallet use taproot etc...|
Lightning Invoice|Begins with "lnbc1" - lnbc1 for Bitcoin, lntb for testnet|


Fees Comparison
Address Format|Fee Levels|
Legacy (P2PKH)|Highest Fees|
P2SH|Medium - Better than Legacy|
Native Segwit|Lowest|
Taproot Segwit|Low - Better than P2SH (Simple tx X Complex tx )|
Lightning Invoice|Zero or little|

Identifying any address can be done simply by knowing each prefix, another similar method is length of address but that may not be efficient as two address can have very close characters, example of P2SH and Legacy having close or similar characters.

█████████████████████████
█████████████████████████
███████▀█████████▀███████
█████████████████████████
█████████████████████████
████████████▀████████████
███████▀███████▄███████
███████████▄▄▄███████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████

 2UP.io 
NO KYC
CASINO
██████████████████████████
████████████████████████
███████████████████████
███████████████████
██████████████████████
███████████████████████
███████████████████████
██████████████████
███████████████████████
██████████████████
███████████████████████
████████████████████████
██████████████████████████
███████████████████████████████████████████████████████████████████████████████████████
 
FASTEST-GROWING CRYPTO
CASINO & SPORTSBOOK

 

███████████████████████████████████████████████████████████████████████████████████████
███████████████████████████
█████████████████████████
███████████████████████
███████████████████████
████████████████████████
███████████████████████
███████████████████████
██████████████████████
████████████████████████
███████████████████████
███████████████████████
█████████████████████████
███████████████████████████
 

...PLAY NOW...
Mia Chloe
Legendary
*
Online Online

Activity: 924
Merit: 1557


Contact me for your designs...


View Profile
July 09, 2025, 02:00:33 PM
Merited by Charles-Tim (1), igebotz (1), Zaguru12 (1), Felicity_Tide (1)
 #2

Begins with "bc1p" -  wallets like BlueWallet, Electrum and Sparrow wallet use taproot etc...
This is actually the most updated version of SEGWIT addresses. Infact it's actually the most recent and they fixed some really technical stuff but it's efficiency is almost equal to that of bc1q prefixed addresses. Also take note that fees depend on two major things which are the address type (sender) and most importantly the number of UTXO ( more like the number of outputs and inputs required to complete the transaction) the more it is the higher the size. So you can control the fee rate but size depends on your UTXOs.

Felicity_Tide
Sr. Member
****
Online Online

Activity: 616
Merit: 337


cout << "Bitcoin";


View Profile
July 09, 2025, 03:29:53 PM
Merited by Mia Chloe (2), igebotz (1), Zaguru12 (1)
 #3

Also take note that fees depend on two major things which are the address type (sender) and most importantly the number of UTXO ( more like the number of outputs and inputs required to complete the transaction) the more it is the higher the size. So you can control the fee rate but size depends on your UTXOs.

AFAIK, Legacy addresses don't contain witness field, or should i say, don't support. so both its signature and pK are placed inside the scriptsig, which is then used to know the tx size and calculate the fees. Unlike the other two type of segwit addresses that has witness field, while their difference in how they push their data makes them distinct from the other. I have once asked why Native SegWit (Bech32) addresses have lower tx fee than SegWit (P2SH), and here is one of the best explanation i got for those that are interested... Low tx fees - Technical difference between SegWit and Native SegWit addresses?.

▄▄█████████████████▄▄
▄█████████████████████▄
███▀▀█████▀▀░░▀▀███████

██▄░░▀▀░░▄▄██▄░░█████
█████░░░████████░░█████
████▌░▄░░█████▀░░██████
███▌░▐█▌░░▀▀▀▀░░▄██████
███░░▌██░░▄░░▄█████████
███▌░▀▄▀░░█▄░░█████████
████▄░░░▄███▄░░▀▀█▀▀███
██████████████▄▄░░░▄███
▀█████████████████████▀
▀▀█████████████████▀▀
Rainbet.com
CRYPTO CASINO & SPORTSBOOK
|
█▄█▄█▄███████▄█▄█▄█
███████████████████
███████████████████
███████████████████
█████▀█▀▀▄▄▄▀██████
█████▀▄▀████░██████
█████░██░█▀▄███████
████▄▀▀▄▄▀███████
█████████▄▀▄███
█████████████████
███████████████████
██████████████████
███████████████████
 
 $20,000 
WEEKLY RAFFLE
|



█████████
█████████ ██
▄▄█░▄░▄█▄░▄░█▄▄
▀██░▐█████▌░██▀
▄█▄░▀▀▀▀▀░▄█▄
▀▀▀█▄▄░▄▄█▀▀▀
▀█▀░▀█▀
10K
WEEKLY
RACE
100K
MONTHLY
RACE
|

██









█████
███████
███████
█▄
██████
████▄▄
█████████████▄
███████████████▄
░▄████████████████▄
▄██████████████████▄
███████████████▀████
██████████▀██████████
██████████████████
░█████████████████▀
░░▀███████████████▀
████▀▀███
███████▀▀
████████████████████   ██
 
[..►PLAY..]
 
████████   ██████████████
Solodoski
Full Member
***
Offline Offline

Activity: 308
Merit: 158



View Profile
July 09, 2025, 05:15:03 PM
Merited by Reincarnated Sat (4), Ronsbit (2), Zackz5000 (2), igebotz (1), Mia Chloe (1)
 #4

Begins with "bc1p" -  wallets like BlueWallet, Electrum and Sparrow wallet use taproot etc...
This is actually the most updated version of SEGWIT addresses. Infact it's actually the most recent and they fixed some really technical stuff but it's efficiency is almost equal to that of bc1q prefixed addresses.
You are absolutely right Mia Chloe. However, there is always room for more improvement in the future, especially if there is more adoption of the MuSig2.

Also, it is very important to remember that taproot transactions are less supported across wallets and explore. Which can raise concern or even rejection if you are using a more advanced setups like custom scripts or PSBT. So yeah, it is the latest upgrade but it cannot be all efficient to everyone because most individuals use Bitcoin differently, some prefer custom setups.

Zaguru12
Legendary
*
Offline Offline

Activity: 1274
Merit: 1146



View Profile WWW
July 09, 2025, 05:47:10 PM
Merited by igebotz (1), Mia Chloe (1), Felicity_Tide (1)
 #5


AFAIK, Legacy addresses don't contain witness field, or should i say, don't support. so both its signature and pK are placed inside the scriptsig, which is then used to know the tx size and calculate the fees. Unlike the other two type of segwit addresses that has witness field, while their difference in how they push their data makes them distinct from the other. I have once asked why Native SegWit (Bech32) addresses have lower tx fee than SegWit (P2SH), and here is one of the best explanation i got for those that are interested... Low tx fees - Technical difference between SegWit and Native SegWit addresses?.

Exactly, the misconception has always been that SegWit removes witness from the transaction and therefore reduces the size of the transaction which is total wrong it technically doesn’t do any of that, rather what SegWit does is changing the usual way of calculating the size of the transaction changing from size to weight and then this fork introduces a new field we call the witness, this witness is much smaller in weight than the usual one we have in legacy address format.

So with the transaction fee then now calculated base on virtual size and with SegWit, witness is the new replacement which smaller in size than the usual Legacy it will mean that more transaction of SegWit can fit into a block than Legacy which is why there is lower fees

When you are sending to a similar address, I guess it would be cost free?? Haven't actually transferred out to a different wallet mainly due to fear of loosing my assets.
Don’t get confused, there is no way a transaction will cost free, although technically the bitcoin network doesn’t makes it compulsory that their should be fees, if your wallet client or node accepts, you can send transactions to any address format without fees, but miners prioritize transactions based on fees so wallets have built there clients to actually reject any transaction with fees or even fees below 1sats/vbyte. So realistically it is not possible to send transactions without fees.

As for fees, the choice of address format and the number of input and output affects the amount to be paid for fees, because fees are based on the transaction size

▄███████████████████▄
████████████████████████
██████████▀▀▀▀██████████
███████████████▀▀███████
████████▄▄████▄▄███████
███████████████████████
██████████▀██▀██████████
█████████▄████▄▄▄▄██████
██████▀████▄▄████▀██████
████████▀████████▀██████
██████▄████▀▀▀▀█████████
█████████▄▄████▄▄████████
▀███████████████████▀
.
 BC.GAME 
███████████████
███████████████
███████████████
███████████████
██████▀░▀██████
████▀░░░░░▀████
███░░░░░░░░░███
███▄░░▄░▄░░▄███
█████▀░░░▀█████

███████████████

███████████████

███████████████

███████████████
███████████████
███████████████
███████████████
███████████████
███░░▀░░░▀░░███
███░░▄▄▄░░▄████
███▄▄█▀░░▄█████
█████▀░░▐██████
█████░░░░██████

███████████████

███████████████

███████████████

███████████████
███████████████
███████████████
███████████████
███████████████
██████▀▀░▀▄░███
████▀░░▄░▄░▀███
███▀░░▀▄▀▄░▄███
███▄░░▀░▀░▄████
███░▀▄░▄▄██████

███████████████

███████████████

███████████████

███████████████

DEPOSIT BONUS
..470%..
GET FREE
...5 BTC...

REFER & EARN
..$1000 + 15%..
COMMISSION


 Play Now 
Charles-Tim
Legendary
*
Offline Offline

Activity: 2128
Merit: 6107


Leading Crypto Sports Betting & Casino Platform


View Profile
July 09, 2025, 06:56:13 PM
Last edit: July 09, 2025, 08:46:16 PM by Charles-Tim
Merited by igebotz (1), Mia Chloe (1), Felicity_Tide (1)
 #6

We don't hear it common but over and over there has been transfer gone wrong when sending Bitcoin to address, either to a wrong address or to a wrong network. Identifying address by format eradicate such mistakes because it helps decide what type of wallet or transaction is in use before sending.
It can not eradicate it completely. Someone can mistakenly send bitcoin to a wrong address due to clipboard malware. Address poisoning is common to altcoins but dust attack may likely lead to such also if it is bitcoin. We have seen recently someone affected with it.

The old time has gone, you can not see anyone that will say he sent bitcoin to litecoin or bitcoin cash (BCH) address again. If you want to send to litecoin address that start with 1, you will see an error that the address is not valid. In the past, people sending to the litecoin addresses that start from 3 were affected, but later litecoin developers changed it from 3 to M prefix addresses. Also you can now see that bitcoin cash addresses are starting from different characters already and not 1.

Other altcoins have different characters also.

So, if you see someone send bitcoin to a wrong address, it will definitely be because of another thing entirely like clipboard malware and address poisoning.

P2SH   |   Begins with "3" Still part of segwit but older version
It is pay to script hash and not part of segwit in any way, but it was used to create nested segwit (P2SH-P2WPKH) and also used in multisig wallet (P2SH-P2WSH) because segwit was not compatible at the time and some nodes has not upgraded. It has lesser fee than legacy address but I do not see any reason people should still be using it when all nodes have upgraded to segwit which has lowest fee.


If you have many inputs in your transaction and you want to consolidate or send more UTXOs (which is the output) to an address, P2TR will have the cheapest fee. If your transaction has more outputs but low inputs, segwit version 0 which you refer to as native segwit has the lowest fee. If you just want to send one input and one output, the fee slightly lower using segwit and taproot is. You can read this about fee comparison between segwit and taproot:

Pay-to-taproot (P2TR) transaction fee

In normal usage, transaction outputs are more than the inputs, which is the reason it was concluded that segwit has the lowest fee. I mean bech32.

It is worth knowing that P2TR is also segwit. bc1q is segwit version 0, while P2TR is the segwit version 1.

P2TR means pay-to-taproot.

So you can control the fee rate but size depends on your UTXOs.
It is virtual size or weight. Although, if you are referring to legacy address, it is size but the size is the same as the virtual size so far it is legacy address.

Also, it is very important to remember that taproot transactions are less supported across wallets and explore. Which can raise concern or even rejection if you are using a more advanced setups like custom scripts or PSBT. So yeah, it is the latest upgrade but it cannot be all efficient to everyone because most individuals use Bitcoin differently, some prefer custom setups.
The major advantage of taproot that was proposed was multisig which will significantly reduce transaction fee even far more than if compared to legacy and segwit multisig addresses. But I am surprised BIP86 was introduced which is single signature of taproot and we have not seen its multisig.

..Stake.com..   ▄████████████████████████████████████▄
   ██ ▄▄▄▄▄▄▄▄▄▄            ▄▄▄▄▄▄▄▄▄▄ ██  ▄████▄
   ██ ▀▀▀▀▀▀▀▀▀▀ ██████████ ▀▀▀▀▀▀▀▀▀▀ ██  ██████
   ██ ██████████ ██      ██ ██████████ ██   ▀██▀
   ██ ██      ██ ██████  ██ ██      ██ ██    ██
   ██ ██████  ██ █████  ███ ██████  ██ ████▄ ██
   ██ █████  ███ ████  ████ █████  ███ ████████
   ██ ████  ████ ██████████ ████  ████ ████▀
   ██ ██████████ ▄▄▄▄▄▄▄▄▄▄ ██████████ ██
   ██            ▀▀▀▀▀▀▀▀▀▀            ██ 
   ▀█████████▀ ▄████████████▄ ▀█████████▀
  ▄▄▄▄▄▄▄▄▄▄▄▄███  ██  ██  ███▄▄▄▄▄▄▄▄▄▄▄▄
 ██████████████████████████████████████████
▄▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▄
█  ▄▀▄             █▀▀█▀▄▄
█  █▀█             █  ▐  ▐▌
█       ▄██▄       █  ▌  █
█     ▄██████▄     █  ▌ ▐▌
█    ██████████    █ ▐  █
█   ▐██████████▌   █ ▐ ▐▌
█    ▀▀██████▀▀    █ ▌ █
█     ▄▄▄██▄▄▄     █ ▌▐▌
█                  █▐ █
█                  █▐▐▌
█                  █▐█
▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀█
▄▄█████████▄▄
▄██▀▀▀▀█████▀▀▀▀██▄
▄█▀       ▐█▌       ▀█▄
██         ▐█▌         ██
████▄     ▄█████▄     ▄████
████████▄███████████▄████████
███▀    █████████████    ▀███
██       ███████████       ██
▀█▄       █████████       ▄█▀
▀█▄    ▄██▀▀▀▀▀▀▀██▄  ▄▄▄█▀
▀███████         ███████▀
▀█████▄       ▄█████▀
▀▀▀███▄▄▄███▀▀▀
..PLAY NOW..
Cryptomultiplier
Sr. Member
****
Offline Offline

Activity: 1302
Merit: 294



View Profile WWW
July 09, 2025, 07:28:16 PM
 #7

We don't hear it common but over and over there has been transfer gone wrong when sending Bitcoin to address, either to a wrong address or to a wrong network. Identifying address by format eradicate such mistakes because it helps decide what type of wallet or transaction is in use before sending.

Address Format|Identify By Prefix|
Legacy (P2PKH)|Begins with "1" - Bitcoin core and old Bitcoin mobile wallets|
P2SH|Begins with "3" Still part of segwit but older version|
Native Segwit (Bech32)|Begins with "bc1q" - modern and updated version of segwit|
Taproot Segwit (Bech32m)|Begins with "bc1p" -  wallets like BlueWallet, Electrum and Sparrow wallet use taproot etc...|
Lightning Invoice|Begins with "lnbc1" - lnbc1 for Bitcoin, lntb for testnet|


Fees Comparison
Address Format|Fee Levels|
Legacy (P2PKH)|Highest Fees|
P2SH|Medium - Better than Legacy|
Native Segwit|Lowest|
Taproot Segwit|Low - Better than P2SH (Simple tx X Complex tx )|
Lightning Invoice|Zero or little|

Identifying any address can be done simply by knowing each prefix, another similar method is length of address but that may not be efficient as two address can have very close characters, example of P2SH and Legacy having close or similar characters.
I would start by firstly saying that the full meaning of Legacy's P2PKH is pay to public key hash and  the P2SH is pay to script hash. While both of the older address versions have between 33 and 34 characters, Bech32 has 42 while Bech32m has 62 characters. With the way upgrades has been done so far am sure the error of inputting wrong addresses is easily addressed as invalid with checksum ability incorporated in Bitcoin addresses to this end.

Also, one interesting fact that connects all these types of addresses is that they are case sensitive and am sure we all know that different wallet addresses can generate different addresses for transactions for privacy concerns, while the previously used addresses still remains valid

▄▄███████████████████▄▄
▄███████████████████████▄
███████████████████▄█████
█████████████████████████
███████████▀█████████████
█████████▀███▀██████▀████
██████████████████▄██████
█████████▄▄▄▄███████████
██████████▄▄▄████████████
███████████████████▀█████
████████████████▀▀███████
▀███████████████████████▀
▀▀███████████████████▀▀
 
EARNBET 
████
██
██
██
██
██
██
██
██
██
██
██
████
███████▄▄███████████
████▄██████████████████
██▀▀███████████████▀▀███
▄████████████████████████
▄▄████████▀▀▀▀▀████████▄▄██
███████████████████████████
█████████▌██▀████████████
███████████████████████████
▀▀███████▄▄▄▄▄█████████▀▀██
▀█████████████████████▀██
██▄▄███████████████▄▄███
████▀██████████████████
███████▀▀███████████
████████
HIGHEST VIP REWARDS
G U A R A N T E E D 
████████
████████
██
██
██
██
██
██
██
██
██
██
██
████████
█████████

▄▄▄
▄▄▄███████▐███▌███████▄▄▄
█████████████████████████
▀████▄▄▄███████▄▄▄████▀
█████████████████████
▐███████████████████▌
███████████████████
███████████████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀

█████████
████████
King of The Castle
$200,000 in prizes
████████
████████
██
██
██
██
██
██
██
██
██
██
██
████████
█████████
62.5%
████████
█████████
 
RAKEBACK
BONUS

 
█████████
████
██
██
██
██
██
██
██
██
██
██
██
████
[/c
SuperBitMan
Hero Member
*****
Offline Offline

Activity: 518
Merit: 506



View Profile
July 10, 2025, 07:54:47 AM
 #8

Obim34 I want to commend you for this thread that you created, this things are very important to note, I wish I came across this when I started Bitcoin investment I won't have made a mistake that caused me some Bitcoin years back, this thread will be beneficial to newbies and even some old members here, to be honest with you some older members here don't know how to identify Bitcoin network by there address, and that is why when you send your Bitcoin address to some old Bitcoin investors they will still ask you which network is the address, is very important we know all this things.

Obim34 how I wish you included USDT here too it would have been better, since most people usually use USDT to purchase Bitcoin and when they want to sell they do it and then convert it to USDT and then send it to an exchange that allows P2P trading like Bybit, bitget etc, I'm sure it would be helpful too.
Those who are newbies into cryptocurrency should take it upon themselves to know how to identify network by address especially for Bitcoin and USDT.

█████████████████████████
█████████████████████████
███████▀█████████▀███████
█████████████████████████
█████████████████████████
████████████▀████████████
███████▀███████▄███████
███████████▄▄▄███████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████

 2UP.io 
NO KYC
CASINO
██████████████████████████
████████████████████████
███████████████████████
███████████████████
██████████████████████
███████████████████████
███████████████████████
██████████████████
███████████████████████
██████████████████
███████████████████████
████████████████████████
██████████████████████████
███████████████████████████████████████████████████████████████████████████████████████
 
FASTEST-GROWING CRYPTO
CASINO & SPORTSBOOK

 

███████████████████████████████████████████████████████████████████████████████████████
███████████████████████████
█████████████████████████
███████████████████████
███████████████████████
████████████████████████
███████████████████████
███████████████████████
██████████████████████
████████████████████████
███████████████████████
███████████████████████
█████████████████████████
███████████████████████████
 

...PLAY NOW...
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!