> For the complete documentation index, see [llms.txt](https://www.0x1.academy/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.0x1.academy/jiao-yi-cao-zuo/undefined/ha-xi.md).

# 交易哈希

> **最後更新：2026 年 1 月**

**交易哈希（Transaction Hash）又稱 TxHash（唸作：踢叉-嘿許），其中的 Tx ，就是交易 Transaction 的縮寫。**

每筆交易送上區塊鏈時，都會獲得一組獨一無二的交易編碼，也就是轉帳記錄編號。交易哈希，有時候也會稱作**交易哈希地址**，原因就是持有這串英數組合的編碼，就可以能在**區塊鏈帳本**上，查找出該編號交易的內容，包括發起人、接收者、交易金額或傳遞內容等。

就像銀行的交易水單編號、交易記錄編號等。只不過，通常不同銀行內部的編碼有不同的規則，而同一個區塊鏈網路上的編碼則是共用同一個規則，沒有國界之分。但不同區塊鏈，則就有不同的 TxHash 編碼格式。例如：

比特幣區塊鏈上的交易哈希地址：\
[**657f2bdccee4042d469ed60eea749503e784d4e6781d9329f1d2db890d5c8ece**](https://live.blockcypher.com/btc/tx/657f2bdccee4042d469ed60eea749503e784d4e6781d9329f1d2db890d5c8ece/)\*\*\*\*

{% embed url="<https://live.blockcypher.com/btc/tx/657f2bdccee4042d469ed60eea749503e784d4e6781d9329f1d2db890d5c8ece/>" %}

以太坊區塊鏈上的交易哈希地址：[0x2eb96d95843c7928ce7f62598393ff6d20ed15905d43ebff13a49107e8187926](https://etherscan.io/tx/0x2eb96d95843c7928ce7f62598393ff6d20ed15905d43ebff13a49107e8187926)

{% embed url="<https://etherscan.io/tx/0x2eb96d95843c7928ce7f62598393ff6d20ed15905d43ebff13a49107e8187926>" %}

哈希這個詞，在後面的「[哈希](/qu-kuai-lian-ru-he-da-cheng-gong-shi/wa/ha-xi-zhi.md)」條目中會詳細說明，在這裡只需要知道，交易哈希就是一組通常比錢包地址更長的英數組合字串，是區塊鏈帳上每次任一筆交易發生時會觸發產生的**獨一無二的交易編號**。

{% tabs %}
{% tab title="寶博士小挑戰" %}
交易哈希產生時，是否就代表交易已經成功？
{% endtab %}

{% tab title="答案" %}
不是。

交易哈希是交易發起時，區塊鏈帳本給予該筆交易的「編號」。如果我戶頭裡只有 1 個比特幣而我還是可以向區塊鏈帳本發起轉帳 2 比特幣給你的交易，交易哈希依然會被建立，只是這筆交易記錄最終會是以失敗作收場，因為帳本檢查後就會發現我要轉出的資產大於我所擁有的，那當然就會失敗了。
{% endtab %}
{% endtabs %}

***

#### 相關條目

* [交易手續費](/jiao-yi-cao-zuo/undefined/shou.md)
* [送出交易](/jiao-yi-cao-zuo/undefined/song-chu.md)

#### 參考資料


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://www.0x1.academy/jiao-yi-cao-zuo/undefined/ha-xi.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
