# js-mcs-sdk

js-mcs-sdk 是一个用于 MCS 服务的 javascript 软件开发工具包。 它为从 Web 浏览器或 Node.js 使用 MCS API 提供了一个方便的界面。

SDK 具有以下功能：

* POST 上传文件到 FilSwan IPFS 网关
* POST 支付给 Swan Filecoin 存储网关
* 铸造为 NFT
* 获取上传的文件列表
* 按 CID 获取文件
* 从 Filecoin 获取存储状态

{% embed url="<https://github.com/filswan/js-mcs-sdk>" %}

#### 赞助商 <a href="#zan-zhu-shang" id="zan-zhu-shang"></a>

该项目由 Filecoin 基金会赞助

[Flink SDK - A data provider offers Chainlink Oracle service for Filecoin Network](https://github.com/filecoin-project/devgrants/issues/463)

[![](https://github.com/filswan/flink/raw/main/filecoin.png)](https://github.com/filswan/flink/blob/main/filecoin.png)


---

# 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/multichain.storage/developer-quickstart-1/sdk/js-mcs-sdk.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.
