Datatypes › Cryptocurrency

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
90/100 · missing: mapping (Wikidata, Schema.org, ...)
Metacrafter rules
no detection rule yet
Supported by tools
pyWhat

Regular expression

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

Python re syntax.

Test a value

Examples

ValueDescription
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 mixed case is not allowed

Translations

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

Sources

Use this record