Datatypes

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)
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

ValueDescription
3J98t1WpEZ73CNmQviecrnyiWrnqRhWNLyExample address of the Bitcoin Wiki article on invoice addresses
3J98t1WpEZ73CNmQviecrnyiWrnqRhWNLz invalidlast character changed, the checksum fails
1PMycacnJaSqwwJqjawXBErnLsZ7RkXUAs invalidP2PKH address (p2pkhaddr)

Translations

LanguageNameDescription
RussianАдрес Bitcoin P2SH

Sources

Use this record