> 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/getting-started/quickstart.md).

# Quickstart

There are two fast paths to your first Energy purchase. Pick one.

## Path A — Buy on the website (no code)

1. Go to [tronsave.io/market](https://tronsave.io/market) and click **Connect** to connect your TRON wallet (e.g., TronLink).
2. Choose **Buy**, then set:
   * **Resource**: Energy (default) or Bandwidth
   * **Amount**: e.g. `32000` Energy (≈ one USDT TRC‑20 transfer)
   * **Duration**: e.g., 1 hour or 3 days
   * **Price tier**: `MEDIUM` is a good default — see [Order Types](/concepts/order-types.md)
3. Confirm and sign. Energy is delegated to your address within seconds once the order matches.

{% hint style="success" %}
That's it. To learn the different ways to buy (Normal, Pending, Smart, ZapBuy, Auto Buy), see [Buy Energy & Bandwidth](/guides/buy.md).
{% endhint %}

## Path B — Buy via the API (for developers)

In about 10 minutes, you'll get an API key, deposit TRX, estimate cost, and place an order. Full walkthrough:

➡️ [**Developer Quickstart**](/developers/quickstart.md)

Minimal version:

```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}}'
```

## Testing first?

Use the **Nile testnet** — same flow, no real TRX:

<table><thead><tr><th width="155"></th><th>Production</th><th>Testnet (Nile)</th></tr></thead><tbody><tr><td>Website</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>

## Next steps

* [Developer Quickstart](/developers/quickstart.md) · [Authentication](/developers/authentication.md) · [API Reference](/developers/api-reference.md)
* [How It Works](/getting-started/how-it-works.md) · [Order Types](/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/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.
