---
id: "bitcoin_txid"
kind: "datatype"
status: "draft"
is_pii: false
categories: ["cryptocurrency"]
langs: ["common"]
quality: 83
url: "http://registry.apicrafter.io/datatype/bitcoin_txid"
---

# Bitcoin transaction ID (txid) (`bitcoin_txid`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

Identifier of a Bitcoin transaction: the double SHA-256 hash of the serialized transaction without its witness data, written as 64 hexadecimal digits in reversed byte order, as block explorers and the Bitcoin Core RPC show it. Block hashes and the transaction IDs of Bitcoin forks (Litecoin, Bitcoin Cash, Dogecoin) have the same form, so the value alone does not tell them apart.

- Parent datatype: `sha256hash`
- Personal data (PII): no
- Categories: Cryptocurrency (cryptocurrency)
- Countries: global
- Languages: Common to most languages (common)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^[0-9a-fA-F]{64}$
```

## Examples

- `4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b` — Coinbase transaction of the genesis block
- `4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33` (invalid example) — one hex digit short (63 instead of 64)

## Supported by tools

- `greatexpectations`

## Translations

- ru: Идентификатор транзакции Bitcoin (txid)

## Sources

- doc: <https://developer.bitcoin.org/reference/transactions.html>
- other: <https://en.bitcoin.it/wiki/Genesis_block>

## Quality

Score 83/100. Missing: second example, mapping (Wikidata, Schema.org, ...).

JSON: <http://registry.apicrafter.io/api/v1/datatypes/bitcoin_txid.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/cryptocurrency/bitcoin_txid.yaml>
