Datatypes

Bitcoin P2WPKH address (native SegWit, bc1q)

ID p2wpkhaddr

DatatypeNot PIIidentifier

Native SegWit address of the pay-to-witness-public-key-hash (P2WPKH) type: witness version 0 with a 20-byte public key hash (BIP 141), encoded with Bech32 (BIP 173). Mainnet addresses have the prefix bc1q and 42 characters. They are written in lower case, or in upper case in QR codes, but never in mixed case. Testnet addresses (tb1q) are not matched.

Parent datatype
Cryptocurrency address crypto_address
Categories
Cryptocurrency
Countries
Global (not tied to a country)
Languages
Common to most languages
Presidio
CRYPTO
python-stdnum
stdnum.bitcoin
Check digit
bech32
Quality
100/100
Metacrafter rules
2 rules (1 by field name, 1 by value)
Supported by tools
DataPrep, Great Expectations Semantic Types Expectations, metacrafter, OpenMetadata auto-classification, Microsoft Presidio, python-stdnum

Regular expression

^(?:bc1q[02-9ac-hj-np-z]{38}|BC1Q[02-9AC-HJ-NP-Z]{38})$

Python re syntax.

Examples

ValueDescription
bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4P2WPKH example of BIP 173
BC1QW508D6QEJXTDG4Y5R3ZARVARY0C5XW7KV8F3T4The same address in upper case (BIP 173 test vector)
bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdqExample address of the Bitcoin Wiki article on invoice addresses
bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t5 invalidlast character changed, the checksum fails
bc1qW508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4 invalidmixed case is not allowed

Translations

LanguageNameDescription
RussianАдрес Bitcoin P2WPKH (SegWit, bc1q)

Sources

Use this record