# Code Example (v2)

- [使用私钥通过 API 购买能源](https://docs.tronsave.io/chinese/full-code-example/code-example-v2/buy-resource-by-api-using-private-key.md): 这是使用私钥通过 API 密钥购买能源的完整示例
- [使用 API 密钥通过 API 购买能源](https://docs.tronsave.io/chinese/full-code-example/code-example-v2/buy-resources-by-api-using-api-key.md): 这是使用 API 密钥通过 API 密钥购买能源的完整示例
- [使用 API 密钥通过 API 扩展订单](https://docs.tronsave.io/chinese/full-code-example/code-example-v2/extend-order-by-api-using-api-key.md): 这是使用 API 密钥通过 API 扩展订单的完整示例。
- [使用私钥通过 API 扩展订单](https://docs.tronsave.io/chinese/full-code-example/code-example-v2/extend-order-by-api-using-private-key.md): 这是使用私钥通过 API 密钥扩展订单的完整示例。


---

# 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/full-code-example/code-example-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.
