> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tronrental.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Inicio rápido

> Compra energía TRON en menos de 5 minutos

## 1. Obtenga su clave API

Regístrese y cree una clave API en [tronrental.com/dashboard/api](https://tronrental.com/dashboard/api).

## 2. Consulte precios

```bash theme={null}
curl https://api.tronrental.com/v1/prices
```

```json theme={null}
{
  "energy_trx": { "1h": "1.79" },
  "energy_sun": { "1h": "27.54" },
  "energy_volume": 65000,
  "energy_fixed_fee_trx": "0.2",
  "bandwidth_trx": { "1h": "0.34", "1d": "0.42" },
  "bandwidth_sun": { "1h": "400", "1d": "630" },
  "bandwidth_volume": 350,
  "trx_usd_rate": "0.234",
  "burn_cost_trx": "6.5",
  "savings_percent": "72.5"
}
```

El alquiler de energía es **solo 1 hora** (`"1h"`). Bandwidth admite `"1h"` o `"1d"`. `energy_trx` es solo el rental; al pagar se suma `energy_fixed_fee_trx` (0.2 TRX).

## 3. Deposite TRX

Obtenga su dirección de depósito:

```bash theme={null}
curl https://api.tronrental.com/v1/account/deposit \
  -H "X-API-Key: your_api_key"
```

Envíe TRX o USDT a la `deposit_address` devuelta. Los depósitos se acreditan automáticamente.

## 4. Compre energía

```bash theme={null}
curl -X POST https://api.tronrental.com/v1/energy/buy \
  -H "X-API-Key: your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "target_address": "TYourRecipientAddress1234567890abc",
    "volume": 65000,
    "duration": "1h"
  }'
```

```json theme={null}
{
  "id": 12345,
  "price_trx": "2.75",
  "status": "pending",
  "txid": null,
  "reclaim_at": null,
  "activation_cost_trx": "0"
}
```

La energía se delegará a la dirección objetivo en segundos.

## 5. Verifique

Consulte el estado de su pedido:

```bash theme={null}
curl https://api.tronrental.com/v1/orders \
  -H "X-API-Key: your_api_key"
```

```json theme={null}
{
  "orders": [
    {
      "id": 12345,
      "type": "energy",
      "target_address": "TYourRecipientAddress1234567890abc",
      "volume": 65000,
      "duration": "1h",
      "price_trx": "2.75",
      "status": "filled",
      "delegate_txid": "abc123...",
      "reclaim_at": null,
      "source": "api",
      "created_at": "2026-06-09T12:00:00Z"
    }
  ],
  "total": 1,
  "page": 1,
  "page_size": 50
}
```

<Tip>
  **65,000 de energía** bastan para un envío de USDT a una dirección que ya tiene USDT.
  Para destinatarios nuevos de USDT, use **131,000 de energía**.
</Tip>

## Ejemplos de código

<CodeGroup>
  ```python Python theme={null}
  import requests

  API_KEY = "your_api_key"
  BASE = "https://api.tronrental.com/v1"
  headers = {"X-API-Key": API_KEY}

  resp = requests.post(
      f"{BASE}/energy/buy",
      headers=headers,
      json={
          "target_address": "TYourRecipientAddress1234567890abc",
          "volume": 65000,
          "duration": "1h",
      },
  )
  print(resp.json())
  ```

  ```javascript JavaScript theme={null}
  const API_KEY = "your_api_key";
  const BASE = "https://api.tronrental.com/v1";

  const res = await fetch(`${BASE}/energy/buy`, {
    method: "POST",
    headers: {
      "X-API-Key": API_KEY,
      "Content-Type": "application/json",
    },
    body: JSON.stringify({
      target_address: "TYourRecipientAddress1234567890abc",
      volume: 65000,
      duration: "1h",
    }),
  });
  console.log(await res.json());
  ```
</CodeGroup>
