{
  "id": "bitcoin_uri",
  "kind": "datatype",
  "status": "draft",
  "name": "Bitcoin payment URI (bitcoin:)",
  "doc": "URI of the bitcoin: scheme that wallets open from links and QR codes to start a payment (BIP 321, which replaces BIP 21). It holds an address and query parameters such as amount (in BTC), label, message, lightning (a BOLT 11 invoice) or further addresses. The scheme and the parameter names are case-insensitive, and QR codes often use upper case. The address part may be empty when the parameters carry the payment instructions.",
  "parent": "uri",
  "is_pii": false,
  "categories": [
    "cryptocurrency",
    "internet"
  ],
  "langs": [
    "common"
  ],
  "classification": "identifier",
  "regexp": "^[Bb][Ii][Tt][Cc][Oo][Ii][Nn]:(?:[0-9A-Za-z]+(?:\\?\\S+)?|\\?\\S+)$",
  "examples": [
    {
      "value": "bitcoin:175tWpb8K1S7NmH4Zx6rewF9WQrcZv245W?amount=20.3&label=Luke-Jr",
      "description": "Example of BIP 21 and BIP 321 (the address in it is illustrative and fails Base58Check)",
      "valid": true
    },
    {
      "value": "BITCOIN:BC1QUFGY354J3KMVUCH987XE4S40836X3H0LG8F5NQ?BC=BC1P5SWKUGEZN97763TL0YTY6556856UUG0Q6JFLLJVEP9M4P7339X5QZYRH4Q",
      "description": "Upper-case example of BIP 321 for QR codes (illustrative addresses)",
      "valid": true
    },
    {
      "value": "bitcoincash:qpm2qsznhks23z7629mms6s4cwef74vcwvy22gdx6a",
      "description": "Bitcoin Cash address (bitcoin_cash_address)",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "doc",
      "url": "https://github.com/bitcoin/bips/blob/master/bip-0321.mediawiki"
    },
    {
      "type": "doc",
      "url": "https://github.com/bitcoin/bips/blob/master/bip-0021.mediawiki"
    }
  ],
  "translations": {
    "ru": {
      "name": "Платёжный URI Bitcoin (bitcoin:)"
    }
  },
  "quality": {
    "score": 80,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)",
      "detector coverage"
    ]
  },
  "source": {
    "path": "data/datatypes/any/cryptocurrency/bitcoin_uri.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/any/cryptocurrency/bitcoin_uri.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/cryptocurrency/bitcoin_uri.yaml"
  },
  "urls": {
    "html": "http://registry.apicrafter.io/datatype/bitcoin_uri",
    "json": "http://registry.apicrafter.io/api/v1/datatypes/bitcoin_uri.json"
  }
}