> For the complete documentation index, see [llms.txt](https://docs.tronsave.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tronsave.io/chinese/getting-started/quickstart.md).

# 快速开始

购买首份能量有两条快捷路径。任选其一。

## 路径 A——在网站上购买（无需代码）

1. 前往 [tronsave.io/market](https://tronsave.io/market) 并点击 **Connect** 连接你的 TRON 钱包（例如 TronLink）。
2. 选择 **Buy**，然后设置：
   * **Resource**：能量（默认）或带宽
   * **Amount**：例如 `32000` 能量（约等于一次 USDT TRC‑20 转账）
   * **Duration**：例如 1 小时或 3 天
   * **Price tier**：`MEDIUM` 是不错的默认值——参见[订单类型](/chinese/concepts/order-types.md)
3. 确认并签名。订单匹配后，能量会在几秒内代理(委托)到你的地址。

{% hint style="success" %}
完成了。要了解不同的购买方式（Normal、Pending、Smart、ZapBuy、Auto Buy），请参见[购买能量与带宽](/chinese/guides/buy.md)。
{% endhint %}

## 路径 B——通过 API 购买（面向开发者）

大约 10 分钟内，你将获取 API 密钥、充值 TRX、预估成本并下单。完整教程：

➡️ [**开发者快速开始**](/chinese/developers/quickstart.md)

最简版本：

```bash
# 1. Estimate cost
curl -X POST https://api.tronsave.io/v2/estimate-buy-resource \
  -H "Content-Type: application/json" \
  -d '{"receiver":"YOUR_TRON_ADDRESS","resourceType":"ENERGY","resourceAmount":65000,"durationSec":900,"unitPrice":"MEDIUM"}'

# 2. Create the order
curl -X POST https://api.tronsave.io/v2/buy-resource \
  -H "apikey: YOUR_API_KEY" -H "Content-Type: application/json" \
  -d '{"receiver":"YOUR_TRON_ADDRESS","resourceType":"ENERGY","resourceAmount":65000,"durationSec":900,"unitPrice":"MEDIUM","options":{"allowPartialFill":true,"preventDuplicateIncompleteOrders":true}}'
```

## 想先测试一下？

使用 **Nile(测试网)**——流程相同，不消耗真实 TRX：

<table><thead><tr><th width="150"></th><th>生产环境</th><th>测试网 (Nile)</th></tr></thead><tbody><tr><td>网站</td><td><code>https://tronsave.io</code></td><td><code>https://testnet.tronsave.io</code></td></tr><tr><td>API</td><td><code>https://api.tronsave.io</code></td><td><code>https://api-dev.tronsave.io</code></td></tr></tbody></table>

## 后续步骤

* [开发者快速开始](/chinese/developers/quickstart.md) · [身份认证](/chinese/developers/authentication.md) · [API 参考](/chinese/developers/api-reference.md)
* [工作原理](/chinese/getting-started/how-it-works.md) · [订单类型](/chinese/concepts/order-types.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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.tronsave.io/chinese/getting-started/quickstart.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.
