# API使用注意事项(必读)

此API为用户端接口，即![](https://2604621618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvloF7G6sH3tpG6N1g75q%2Fuploads%2Fa7TsycdfdI3UBRXVMY0u%2Fimage.png?alt=media\&token=4d818b8e-0578-4f99-97dd-9eab67fb7963)RUSTMINERSYSTEM默认自带后台中所有接口，用户可根据自己需求调用API开发自己的用户端工具，例如网页、APP或管理工具。

注意：

接口调用地址为

```
用户端访问地址:端口+安全地址
(如果未设置安全地址，则调用路径为用户端访问地址:端口)

例：

例如您的用户端访问地址为 http://127.0.0.1/{安全地址}/
则API调用地址则为 http://127.0.0.1/{安全地址}/{APIURL}

如未设置安全地址, 则直接调用根路径即可
```

【**注意**】 **所有接口除登录外，均需要在header处使用Authorization字段来传入token以验证身份, toekn获取方式详见**[**登录、获取TOKEN**](https://rustminersystem.gitbook.io/rustminersystem/kuang-chi-jie-dian-yong-hu-duan-api/deng-lu-huo-qu-token)**,   调用其他接口时header应传入**

请求头的ContentType应为'application/json'

```
Authorization: Bearer 获取到的TOKEN
```

部分接口需要传入滑动验证码成功后的返回值,   关于滑动验证码调用请参考[滑动验证码](https://rustminersystem.gitbook.io/rustminersystem/kuang-chi-jie-dian-yong-hu-duan-api/diao-yong-huo-qu-hua-dong-yan-zheng-ma)。

<mark style="color:$warning;">注意：</mark>

由于历史原因，所有接口需要传入币种的参数均需要加入特殊标记，例如BTC需要传PI-BTC,  以下为币种参数对照表。

BTC:  **PI-BTC**

LTC: **VA-LTC （赠币跟随主币, 例如DOGE为VA-DOGE）**

KAS: **KAS**

ETC: **ETC**


---

# 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://rustminersystem.gitbook.io/rustminersystem/kuang-chi-jie-dian-yong-hu-duan-api/api-shi-yong-zhu-yi-shi-xiang-bi-du.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.
