<p>You can't. Most segwit addresses are actually p2sh addresses that are wrapped around segwit. As it is impossible to determine what the redeem script of a p2sh will look like there is no way of telling them apart. In summary: If an address starts with a 3 it is impossible to know if its segwit, multisig or something else. If an address starts with a 1 it is safe to send to it, the private key to access the funds will be the same on both chains.</p>

CC BY-SA 3.0
2017-10-24T21:58:45.713Z
How about if you have the private key? Does that make a difference?
Highly Irregular
CC BY-SA 3.0
2017-10-25T07:32:29.973Z
Yes, that does make a difference. If you have the private key you can generate a so called p2sh-p2wpkh address and compare with the address in question. If they are the same, this is a segwit address. If not it is either a p2sh that has been wrapped around a p2pkh which you can check for by generating the p2sh for your private key, or it is a multisig which you can only check if you know all involved keys, or it is some non-standard script which you have no way of checking.
blues
CC BY-SA 3.0
2017-10-24T21:28:37.473Z
2017-10-24T21:59:18.690Z
2017-10-24T21:59:18.690Z
blues
<p>A lot of users seem to be mistakenly sending Bitcoin Cash to Bitcoin addresses and vice versa. I understand Bitcoin Cash doesn't support SegWit and that if Bitcoin Cash is sent to a SegWit Bitcoin address then the Bitcoin Cash is not currently recoverable.</p>

<p>How can I check if a particular address is valid on Bitcoin Cash?</p>

CC BY-SA 4.0
2019-02-06T22:51:53.060Z
I'm voting to close this question as off-topic because it is not about bitcoin.
Claris
CC BY-SA 4.0
2019-02-08T09:09:26.153Z
@Anonymous, despite the name of the site, it is ok to ask questions about other cryptocurrencies (except Ethereum and Monero, since they have their own sites). Check the site [Tour page](https://bitcoin.stackexchange.com/tour).
Highly Irregular
CC BY-SA 4.0
2019-02-08T09:10:05.240Z
I’d like that rule to change due to substantially low quality questions, such as this one.
Claris
CC BY-SA 4.0
2019-02-08T09:12:08.983Z
@Anonymous that's something to argue in Meta, rather than going against the site description and trying to change questions to suit your personal opinion. Note that this question has had more upvotes than downvotes, so it appears others are finding it useful.
Highly Irregular
CC BY-SA 4.0
2019-02-08T09:12:49.233Z
I’m sure everything will be fine.
Claris
<address><segregated-witness><bitcoin-cash>
How to check if an address is valid in Bitcoin Cash?
Highly Irregular
# How to check if an address is valid in Bitcoin Cash?

(Asked by: username_0 on 2017-10-24)

A lot of users seem to be mistakenly sending Bitcoin Cash to Bitcoin addresses and vice versa. I understand Bitcoin Cash doesn't support SegWit and that if Bitcoin Cash is sent to a SegWit Bitcoin address then the Bitcoin Cash is not currently recoverable.

How can I check if a particular address is valid on Bitcoin Cash?

**Tags:** address, segregated-witness, bitcoin-cash

> **Comments:**
> **username_1**: I'm voting to close this question as off-topic because it is not about bitcoin.  
> **username_0**: @Anonymous, despite the name of the site, it is ok to ask questions about other cryptocurrencies (except Ethereum and Monero, since they have their own sites). Check the site [Tour page](https://bitcoin.stackexchange.com/tour).  
> **username_1**: I’d like that rule to change due to substantially low quality questions, such as this one.  
> **username_0**: @Anonymous that's something to argue in Meta, rather than going against the site description and trying to change questions to suit your personal opinion. Note that this question has had more upvotes than downvotes, so it appears others are finding it useful.  
> **username_1**: I’m sure everything will be fine.  

---

## 1 answers

### Answer by username_2 on 2017-10-24. Score: 3

You can't. Most segwit addresses are actually p2sh addresses that are wrapped around segwit. As it is impossible to determine what the redeem script of a p2sh will look like there is no way of telling them apart. In summary: If an address starts with a 3 it is impossible to know if its segwit, multisig or something else. If an address starts with a 1 it is safe to send to it, the private key to access the funds will be the same on both chains.

> **Comments:**
> **username_0**: How about if you have the private key? Does that make a difference?  
> **username_2**: Yes, that does make a difference. If you have the private key you can generate a so called p2sh-p2wpkh address and compare with the address in question. If they are the same, this is a segwit address. If not it is either a p2sh that has been wrapped around a p2pkh which you can check for by generating the p2sh for your private key, or it is a multisig which you can only check if you know all involved keys, or it is some non-standard script which you have no way of checking.  

---

