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)
p2wpkhaddrdata, common/cryptocurrency.yamlp2wpkhaddr_by_fieldfield, common/cryptocurrency.yaml
- 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
| Value | Description |
|---|---|
| bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4 | P2WPKH example of BIP 173 |
| BC1QW508D6QEJXTDG4Y5R3ZARVARY0C5XW7KV8F3T4 | The same address in upper case (BIP 173 test vector) |
| bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq | Example address of the Bitcoin Wiki article on invoice addresses |
| bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t5 invalid | last character changed, the checksum fails |
| bc1qW508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4 invalid | mixed case is not allowed |
Translations
| Language | Name | Description |
|---|---|---|
| Russian | Адрес Bitcoin P2WPKH (SegWit, bc1q) |
Sources
- doc: https://github.com/bitcoin/bips/blob/master/bip-0173.mediawiki
- doc: https://github.com/bitcoin/bips/blob/master/bip-0141.mediawiki
Use this record
- Page URL:
http://registry.apicrafter.io/datatype/p2wpkhaddr - JSON: API v1 · legacy shape (used by metacrafter) · Markdown (for LLMs)
- Improve it: edit
data/datatypes/any/cryptocurrency/p2wpkhaddr.yamlon GitHub