Bitcoin P2SH address
ID p2shaddr
DatatypeNot PIIidentifier
Bitcoin address of the pay-to-script-hash (P2SH) type, defined by BIP 13 and BIP 16. It is the Base58Check encoding of the version byte 5 and the 20-byte hash of a redeem script (for example a multisignature script or wrapped SegWit), so it has 34 characters and starts with 3. Older Litecoin P2SH addresses use the same version byte and cannot be told apart. Testnet P2SH addresses start with 2 and 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
base58check- Quality
- 93/100 · missing: second example
- Metacrafter rules
- 2 rules (1 by field name, 1 by value)
p2shaddrdata, common/cryptocurrency.yamlp2shaddr_by_fieldfield, common/cryptocurrency.yaml
- Supported by tools
- DataPrep, Great Expectations Semantic Types Expectations, metacrafter, OpenMetadata auto-classification, Microsoft Presidio, python-stdnum
Regular expression
^3[1-9A-HJ-NP-Za-km-z]{33}$
Python re syntax.
Examples
| Value | Description |
|---|---|
| 3J98t1WpEZ73CNmQviecrnyiWrnqRhWNLy | Example address of the Bitcoin Wiki article on invoice addresses |
| 3J98t1WpEZ73CNmQviecrnyiWrnqRhWNLz invalid | last character changed, the checksum fails |
| 1PMycacnJaSqwwJqjawXBErnLsZ7RkXUAs invalid | P2PKH address (p2pkhaddr) |
Translations
| Language | Name | Description |
|---|---|---|
| Russian | Адрес Bitcoin P2SH |
Sources
- doc: https://github.com/bitcoin/bips/blob/master/bip-0013.mediawiki
- doc: https://github.com/bitcoin/bips/blob/master/bip-0016.mediawiki
- other: https://en.bitcoin.it/wiki/Invoice_address
Use this record
- Page URL:
http://registry.apicrafter.io/datatype/p2shaddr - JSON: API v1 · legacy shape (used by metacrafter) · Markdown (for LLMs)
- Improve it: edit
data/datatypes/any/cryptocurrency/p2shaddr.yamlon GitHub