# 使用.sol 域名

## 1. 使用SNS交易

Solana 域名服务得到了Solana上大多数，甚至可能是所有主流钱包的支持。&#x20;

在众多用例中（ 查看[整合列表 ） ](/collection/chinese/list-of-integration-zh.md)，使用 .sol 域名进行交易是最受欢迎的功能之一。

&#x20;你可以直接使用 **.sol域名** 或 **X(推特)用户名** 发送SPL通证和原生SOL，以来取代使用钱包地址

<figure><img src="/files/ngiBpHIaj4zm7dPm9rxZ" alt=""><figcaption></figcaption></figure>

### 使用 .sol 域名交易

要使用他人的 .sol 域名向其发送代币，您需要在 "接收人的 SOL 钱包地址 "字段中输入 <域名>.sol 。如果域名未注册，点击 "下一步 "后将显示如下内容

![](https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MXk69cl2AKJ9GKU0wg1-887967055%2Fuploads%2FY7I19k40fyJ0vGlxnwP7%2FScreenshot%202022-06-13%20at%2014.01.04.png?alt=media\&token=d47b7a94-7bae-44b5-b61f-3210c7548136) ![](https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MXk69cl2AKJ9GKU0wg1-887967055%2Fuploads%2FRhmCZR85UYfI1l0lYemA%2FScreenshot%202022-06-13%20at%2014.01.55.png?alt=media\&token=8597a679-6430-4c49-85e2-de980db8de51)

{% hint style="info" %}
**如果接受人的域名是 bonfida，则需要输入`bonfida.sol`**
{% endhint %}

{% hint style="success" %}
**大多数钱包都遵循这里描述的相同情况**
{% endhint %}

#### 使用X（推特）用户名交易

要使用某人的推特用户名向其发送代币，需要在 "接收人的 SOL 钱包地址 "字段中输入 @<推特用户名>。如果未注册推特用户名，点击 "下一步 "后将显示如下内容

![](https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MXk69cl2AKJ9GKU0wg1-887967055%2Fuploads%2FY7I19k40fyJ0vGlxnwP7%2FScreenshot%202022-06-13%20at%2014.01.04.png?alt=media\&token=d47b7a94-7bae-44b5-b61f-3210c7548136) ![](https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MXk69cl2AKJ9GKU0wg1-887967055%2Fuploads%2FRhmCZR85UYfI1l0lYemA%2FScreenshot%202022-06-13%20at%2014.01.55.png?alt=media\&token=8597a679-6430-4c49-85e2-de980db8de51)

{% hint style="info" %}
**如果收件人的 Twitter 用户名是 @bonfida，您需要输入 @bonfida 而不是 bonfida**
{% endhint %}

{% hint style="warning" %}
**Twitter 用户名为小写**
{% endhint %}

## 2. 使用SNS解析网站

### 2.1 站内解析器

进入您的个人资料页面，选择要解析的域名的 "查看”

![](https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MXk69cl2AKJ9GKU0wg1-887967055%2Fuploads%2FGR6SZJeO1QwsV5J32rg1%2FScreenshot%202022-07-25%20at%2010.00.45.png?alt=media\&token=bd284389-dd58-46a0-bca1-e1470e39005d)

{% hint style="info" %}
**在本例中，我们将使用 bonfida.sol**
{% endhint %}

选择域名的记录部分

![](https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MXk69cl2AKJ9GKU0wg1-887967055%2Fuploads%2FHXptVIOKxjZ6ZE2MzmaQ%2FScreenshot%202022-07-25%20at%2009.40.19.png?alt=media\&token=f62b3dea-efba-49b3-8b38-7afc6a0824d5)

解析器支持 (1) URL (2) IPFS CID 和 (3) Arweave 哈希值。选择要解析的内容并输入相应的信息。这里我们使用的是 URL

![](https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MXk69cl2AKJ9GKU0wg1-887967055%2Fuploads%2F02v4fguwxXAFKr6RwWCw%2Frecord.png?alt=media\&token=13fa6afc-654f-4470-bf32-88951611a019)

{% hint style="info" %}
**记录格式如下：**

1. **IPFS: `ipfs://<CID>` (e.g `ipfs://QmZk9uh2mqmXJFKu2Hq7kFRh93pA8GDpSZ6ReNqubfRKKQ`)**
2. **ARWV: `arwv://<HASH>` (e.g `arwv://KuB5jmew87_M2flH9f6ZpB9jlDv8hZSHPrmGUY8KqEk`)**
3. **url: 使用以下格式 `url_to_your_website` (e.g `https://bonfida.org`)**
   {% endhint %}

{% hint style="warning" %}
**如果您有多个记录设置，解析器将优先处理 url 部分，然后是 IPFS，最后是 ARWV**
{% endhint %}

设置好记录部分后，您就可以以 `yourdomainname.sol-domain.org` 的格式浏览 SNS 网站。在本例中，它将是 `bonfida.sol-domain.org`，解析为[`https://bonfida.org`](https://bonfida.org/#/)

### 2.2 以 Brave 举例

通过 [Brave](https://brave.com/) 的集成，您可以直接解析域名。这意味着无需网关或扩展名，只需在URL选项卡中输入.sol域名即可。

&#x20;按照上述步骤，编辑域名的URL或IPFS记录部分。签署交易，您就可以开始了 进入 Brave 浏览器，

在 URL 地址栏中输入您的 .sol 域名，然后查看您的网站解析情况

<figure><img src="https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MXk69cl2AKJ9GKU0wg1-887967055%2Fuploads%2Fh3G7E4idZ8BwqjyzPVcx%2FUntitled%20design%20(1).gif?alt=media&#x26;token=b0c6f90e-0ed0-434d-9199-751820882f22" alt=""><figcaption></figcaption></figure>

### 2.3 以 4Everland 举例

4EVERLAND托管服务支持SNS+IPFS，并为所有SNS所有者提供专用网关`4sol.xyz`。

要在IPFS上部署您的网站并关联您的域名，请遵循以下步骤

**4EVERLAND设置的视频教程**

{% embed url="<https://www.youtube.com/watch?feature=youtu.be&v=BeJhkDziu8A>" %}

### 2.4 Marlin Oyster 网关

Marlin Oyster 还允许您访问添加到 .sol 域名下 IPFS 记录的任何 IPFS URL。该设置非常简单，您只需查看您的域名、下拉记录并使用您的链接编辑 IPFS 记录。

现在您已经完全设置好了，可以通过 .place 网关访问您的网站。例如: <https://builtonoyster.sol.place>

## 3.[SNS管理器](https://www.xnft.gg/app/Dv4kgorqEdzjxFf1rRZajfFmnfWgXrhRdyXT2VxZeumv)

使用我们的智能 SNS 管理器建立和管理您的 web3 身份，释放您在链上的个性价值


---

# 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.sns.id/collection/chinese/sns-v1-zh/using-sns-zh.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.
