# 11. 如何配置 Storage Provider Market

假设 `Lotus-miner`的公网IP为`123.123.73.123`。

## 1. 启用 Market 功能

修改`$LOTUS_MINER_PATH/config.toml`文件中的以下内容：

```
[Subsystems]
 EnableMarkets = true
```

## 2. Lotus-miner IP 配置

修改`$LOTUS_MINER_PATH/config.toml`文件中的以下内容：

将`ListenAddresses`中的IP改为`123.123.73.123`（即公网IP地址），端口自己指定一个固定端口，例如: `1024`；

```toml
[Libp2p]
 ListenAddresses = ["/ip4/123.123.73.123/tcp/1024", "/ip6/::/tcp/0"]
```

更改配置以后，需要重启`Lotus-miner`。

## 3. 发布 Multiaddress

将您的 Multiaddress（上面一步配置的 `ListenAddresses`）发布到链上，以便其他节点可以直接与其通信并发送订单：

```
lotus-miner actor set-addrs /ip4/123.123.73.123/tcp/1024
```

等待消息链上确认后，可通过以下命令查看结果:

```
lotus state miner-info [f0xxxx]
```

## 4. Storage Market Actor 充值

```
lotus wallet market add --from=<钱包地址> --address=<矿工号>
```

## 5. 检查 Lotus-miner 的连通性

访问：

```
https://console.filswan.com/#/tools/checkDataCap
```

输入Storage Provider ID 检查连通性，如无异常，将显示如下。

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

## 6. 设置 Lotus-miner 接单条件

```
lotus-miner storage-deals set-ask --price 0 --verified-price 0 --min-piece-size 56KiB --max-piece-size 32GiB
```

## 7. 过滤 client（可选项）

```
[Dealmaking]
 Filter = "jq -e '.Proposal.Client == \"f1nslxql4pck5pq7hddlzym3orxlx35wkepzjkm3i\" or .Proposal.Client == \"f1stghxhdp2w53dym2nz2jtbpk6ccd4l2lxgmezlq\" or .Proposal.Client == \"f1mcr5xkgv4jdl3rnz77outn6xbmygb55vdejgbfi\" or .Proposal.Client == \"f1qiqdbbmrdalbntnuapriirduvxu5ltsc5mhy7si\" '"
```

如遇任何问题，请在 [FilSwan Discord](https://filswan.com/discord) 频道联系我们。


---

# 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-cn.filswan.com/swan-provider/chang-jian-wen-ti/11.-ru-he-pei-zhi-storage-provider-market.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.
