{
  "id": "p2shaddr",
  "kind": "datatype",
  "status": "stable",
  "name": "Bitcoin P2SH address",
  "doc": "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": "crypto_address",
  "is_pii": false,
  "categories": [
    "cryptocurrency"
  ],
  "langs": [
    "common"
  ],
  "classification": "identifier",
  "regexp": "^3[1-9A-HJ-NP-Za-km-z]{33}$",
  "checksum": "base58check",
  "examples": [
    {
      "value": "3J98t1WpEZ73CNmQviecrnyiWrnqRhWNLy",
      "description": "Example address of the Bitcoin Wiki article on invoice addresses",
      "valid": true
    },
    {
      "value": "3J98t1WpEZ73CNmQviecrnyiWrnqRhWNLz",
      "description": "last character changed, the checksum fails",
      "valid": false
    },
    {
      "value": "1PMycacnJaSqwwJqjawXBErnLsZ7RkXUAs",
      "description": "P2PKH address (p2pkhaddr)",
      "valid": false
    }
  ],
  "mappings": {
    "presidio": "CRYPTO",
    "stdnum": "bitcoin"
  },
  "links": [
    {
      "type": "doc",
      "url": "https://github.com/bitcoin/bips/blob/master/bip-0013.mediawiki"
    },
    {
      "type": "doc",
      "url": "https://github.com/bitcoin/bips/blob/master/bip-0016.mediawiki"
    },
    {
      "type": "other",
      "url": "https://en.bitcoin.it/wiki/Invoice_address"
    }
  ],
  "translations": {
    "ru": {
      "name": "Адрес Bitcoin P2SH"
    }
  },
  "detected_by": {
    "tools": [
      "dataprep",
      "greatexpectations",
      "metacrafter",
      "openmetadata",
      "presidio",
      "pythonstdnum"
    ],
    "metacrafter_rules": [
      {
        "rule": "p2shaddr",
        "type": "data",
        "match": "ppr",
        "file": "common/cryptocurrency.yaml"
      },
      {
        "rule": "p2shaddr_by_field",
        "type": "field",
        "match": "text",
        "file": "common/cryptocurrency.yaml"
      }
    ]
  },
  "quality": {
    "score": 93,
    "missing": [
      "second example"
    ]
  },
  "source": {
    "path": "data/datatypes/any/cryptocurrency/p2shaddr.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/any/cryptocurrency/p2shaddr.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/cryptocurrency/p2shaddr.yaml"
  },
  "urls": {
    "html": "http://registry.apicrafter.io/datatype/p2shaddr",
    "json": "http://registry.apicrafter.io/api/v1/datatypes/p2shaddr.json"
  }
}