---
id: "bitcoin_cash_address"
kind: "datatype"
status: "draft"
is_pii: false
categories: ["cryptocurrency"]
langs: ["common"]
quality: 80
url: "http://registry.apicrafter.io/datatype/bitcoin_cash_address"
---

# Bitcoin Cash address (CashAddr) (`bitcoin_cash_address`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

Address of Bitcoin Cash in the CashAddr format: the network prefix bitcoincash (it may be omitted), a colon and a Base32 payload with a version byte, the hash and a 40-bit BCH-code checksum. With a 160-bit hash the payload has 42 characters and starts with q (P2PKH) or p (P2SH). Lower case is preferred and upper case is allowed, never mixed. Addresses with longer hashes, testnet prefixes (bchtest, bchreg) and legacy Base58 addresses, which look like Bitcoin's, are not matched.

- Parent datatype: `crypto_address`
- Personal data (PII): no
- Categories: Cryptocurrency (cryptocurrency)
- Countries: global
- Languages: Common to most languages (common)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^(?:(?:bitcoincash:)?[qp][02-9ac-hj-np-z]{41}|(?:BITCOINCASH:)?[QP][02-9AC-HJ-NP-Z]{41})$
```

## Examples

- `bitcoincash:qpm2qsznhks23z7629mms6s4cwef74vcwvy22gdx6a` — P2PKH example of the CashAddr specification (legacy 1BpEi6DfDAUFd7GtittLSdBeYJvcoaVggu)
- `bitcoincash:ppm2qsznhks23z7629mms6s4cwef74vcwvn0h829pq` — P2SH example of the CashAddr specification
- `qr95sy3j9xwd2ap32xkykttr4cvcu7as4y0qverfuy` — Example of the CashAddr specification without the prefix
- `bitcoincash:Qpm2qsznhks23z7629mms6s4cwef74vcwvy22gdx6a` (invalid example) — mixed case is not allowed

## Translations

- ru: Адрес Bitcoin Cash (CashAddr)

## Sources

- doc: <https://github.com/bitcoincashorg/bitcoincash.org/blob/master/spec/cashaddr.md>
- wikipedia: <https://en.wikipedia.org/wiki/Bitcoin_Cash>

## Quality

Score 80/100. Missing: mapping (Wikidata, Schema.org, ...), detector coverage.

JSON: <http://registry.apicrafter.io/api/v1/datatypes/bitcoin_cash_address.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/cryptocurrency/bitcoin_cash_address.yaml>
