Datatypes

Bitcoin Cash address (CashAddr)

ID bitcoin_cash_address

DatatypeNot PIIidentifierDraft

This record is a draft: it has not been reviewed yet and may be incomplete or wrong. Do not rely on it for compliance decisions. Help improve it (see CONTRIBUTING.md).

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
Cryptocurrency address crypto_address
Categories
Cryptocurrency
Countries
Global (not tied to a country)
Languages
Common to most languages
Quality
80/100 · missing: mapping (Wikidata, Schema.org, ...), detector coverage
Metacrafter rules
no detection rule yet
Supported by tools
no tool record lists this type yet

Regular expression

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

Python re syntax.

Examples

ValueDescription
bitcoincash:qpm2qsznhks23z7629mms6s4cwef74vcwvy22gdx6aP2PKH example of the CashAddr specification (legacy 1BpEi6DfDAUFd7GtittLSdBeYJvcoaVggu)
bitcoincash:ppm2qsznhks23z7629mms6s4cwef74vcwvn0h829pqP2SH example of the CashAddr specification
qr95sy3j9xwd2ap32xkykttr4cvcu7as4y0qverfuyExample of the CashAddr specification without the prefix
bitcoincash:Qpm2qsznhks23z7629mms6s4cwef74vcwvy22gdx6a invalidmixed case is not allowed

Translations

LanguageNameDescription
RussianАдрес Bitcoin Cash (CashAddr)

Sources

Use this record