# 什么是 WalletConnect ？

## **什么是walletconnect ？**

WalletConnect 是一种开源协议，旨在通过扫描二维码或点击链接的方式，实现去中心化应用（dApps）与加密钱包（例如 MetaMask、Trust Wallet 等）之间的安全连接。它允许用户在不直接暴露其私钥的情况下，通过移动设备或桌面钱包与 dApp 进行交互。

### **其工作原理大致如下：**

**1. 连接建立：**&#x5F53;用户在 dApp 中选择使用 WalletConnect 登录或进行交易时，dApp 会生成一个唯一的二维码或深层链接，供用户使用其加密钱包扫描或点击。

**2.安全通信：**&#x901A;过 WalletConnect，dApp 和钱包之间会通过一个加密的通道进行通信。双方可以通过这个通道交换必要的消息，例如签名请求或交易信息。

**3. 交易签名：**&#x7528;户在其钱包中查看并确认交易或签名请求，确认后将签名返回 dApp，dApp 然后可以根据这个签名进行相应的操作。

**4. 链上交互：**&#x64;App 可以通过这种方式与区块链交互，但私钥始终存储在用户的钱包中，而不会暴露给 dApp。

### **使用 WalletConnect 有以下好处：**

* **安全性：**&#x7528;户无需共享他们的私钥，从而降低了安全风险。
* **便利性：**&#x7528;户可以轻松地连接到 dApp，无需记住复杂的凭据。
* **隐私：**&#x64;App 不会存储用户的私钥或个人信息，保护用户的隐私。
* **通用性：**&#x57;alletConnect 与大多数主流移动钱包和 dApp 兼容。

### **应用场景**

WalletConnect 可以用于各种场景，包括：

* 与 DeFi（去中心化金融）dApp 交互
* 参与 NFT（非同质化代币）市场
* 访问去中心化游戏
* 参与治理提案

WalletConnect 的优势在于它可以支持跨设备的使用，用户可以在移动设备上使用钱包，而在桌面端进行 dApp 交互，且全程安全加密。

如有不明白或者不清楚的地方，请加入官方电报群：[**https://t.me/gtokentool**](https://t.me/gtokentool)


---

# 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://docs.gtokentool.com/qu-kuai-lian/shen-me-shi-walletconnect.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.
