# 购买资源 (v2)

使用 Tronsave API 密钥和签名交易购买能量的两种方法：

## [**使用签名交易**](/chinese/developer/buy-resources-v2/use-signed-transaction.md)

\
在此方法中，用户创建一个交易，并使用私钥对其进行签名。

签名交易随后被发送到区块链网络进行验证和执行。这确保只有私钥的所有者才能执行该交易。

**优点：**

* 由于使用私钥签名，安全性要求较高。
* 更加控制支付资金，客户可以直接管理。

**缺点：**

* 发送到区块链网络的交易将产生额外的交易费用。
* 集成较为复杂，需要理解交易签名和验证流程。

***

## [**使用 API 密钥**](/chinese/developer/buy-resources-v2/use-api-key.md)

\
要使用 API 密钥，您需要创建一个 Tronsave 内部账户并向其中存入资金。\[[阅读完整指南](/chinese/developer/get-api-key.md)]

创建内部账户后，将生成一个 API 密钥，用于验证您的交易。

**优点：**

* 交易快速且安全。
* 集成简单。
* 节省交易费用。

**缺点：**

* 需要将资金存入内部账户才能执行交易。
* Tronsave 系统将管理客户的内部账户。


---

# 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.tronsave.io/chinese/developer/buy-resources-v2.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.
