# 輕量節點

\*\*輕量節點（英文：Lightweight-node）\*\*就是一個區塊鏈帳本儲存設備，但不一定存有該帳本的完整資料，只存有最近一定量的交易記錄，或是某大類別或時間的交易記錄。但只要有心，一個輕量節點也可以透過其所擁有部份或全部分帳本資訊位置資訊，擴充升級為全節點。

***

## 輕量節點的運作方式

輕量節點就像是「摘要版的圖書館」——它不存所有書籍，但知道去哪裡找。

| 方式          | 說明                |
| ----------- | ----------------- |
| SPV（簡單支付驗證） | 只下載區塊頭，驗證交易是否在區塊中 |
| 信任全節點       | 向全節點查詢資料，但不完全驗證   |

***

## 為什麼需要輕量節點？

### 1. 低門檻

不是每個人都有 500GB 儲存空間來運行全節點。輕量節點讓手機、平板也能參與。

### 2. 快速同步

全節點需要同步數百 GB 資料，輕量節點幾分鐘就能開始使用。

### 3. 節省資源

對於只想查詢餘額、發送交易的一般用戶，輕量節點就足夠了。

{% hint style="info" %}
**你的手機錢包就是輕量節點**

MetaMask、Trust Wallet 等手機錢包都是輕量節點。它們不儲存完整區塊鏈，而是向遠端的全節點查詢資料。
{% endhint %}

***

## 全節點 vs 輕量節點

| 項目   | 全節點    | 輕量節點  |
| ---- | ------ | ----- |
| 儲存空間 | 數百 GB  | 幾 MB  |
| 同步時間 | 數小時～數天 | 幾分鐘   |
| 驗證能力 | 完整驗證   | 部分驗證  |
| 信任假設 | 無需信任   | 信任全節點 |
| 適合對象 | 進階用戶   | 一般用戶  |

***

## 輕量節點的風險

### 1. 信任問題

你信任的全節點可能提供錯誤資訊。雖然機率很低，但理論上存在風險。

### 2. 隱私疑慮

你查詢的地址、交易可能被全節點記錄。

***

## 延伸閱讀

* [全節點](/gei-kai-fa-zhe-de-zhi-nan/node/quan.md) — 完整驗證的節點類型
* [節點總覽](/gei-kai-fa-zhe-de-zhi-nan/node.md) — 區塊鏈節點的基礎
* [電子錢包](/bao-guan-ni-de-jia-mi-zi-chan/wallet.md) — 許多錢包都是輕量節點

***

#### 參考資料

* [Light Clients - Ethereum](https://ethereum.org/en/developers/docs/nodes-and-clients/light-clients/)
* [SPV - Bitcoin Wiki](https://en.bitcoin.it/wiki/Simplified_Payment_Verification)


---

# Agent Instructions: 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:

```
GET https://www.0x1.academy/gei-kai-fa-zhe-de-zhi-nan/node/liang.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
