Ana içeriğe atla

1. API anahtarinizi alin

tronrental.com/dashboard/api adresinden kaydolun ve bir API anahtari olusturun.

2. Fiyatlari kontrol edin

curl https://api.tronrental.com/v1/prices
{
  "energy_trx": { "1h": "1.79", "1d": "..." },
  "energy_sun": { "1h": "27.54", "1d": "..." },
  "energy_volume": 65000,
  "bandwidth_trx": { "1h": "1.54", "1d": "..." },
  "bandwidth_volume": 350,
  "trx_usd_rate": "0.234",
  "burn_cost_trx": "6.5",
  "savings_percent": "72.5"
}

3. TRX yatirin

Yatirma adresinizi kontrol edin:
curl https://api.tronrental.com/v1/account/deposit \
  -H "X-API-Key: your_api_key"
Donen deposit_address adresine TRX veya USDT gonderin. Yatirmalar otomatik olarak hesabiniza eklenir.

4. Enerji satin alin

curl -X POST https://api.tronrental.com/v1/energy/buy \
  -H "X-API-Key: your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "address": "TRecipientAddress...",
    "energy_amount": 65000,
    "duration_hours": 1
  }'
{
  "order_id": 1234,
  "address": "TRecipientAddress...",
  "energy_amount": 65000,
  "duration_hours": 1,
  "price_trx": "2.75",
  "status": "pending"
}
Enerji, hedef adrese saniyeler icinde devredilecektir.

5. Dogrulama

Siparis durumunuzu kontrol edin:
curl https://api.tronrental.com/v1/orders \
  -H "X-API-Key: your_api_key"
65.000 enerji, halihazirda USDT bulunan bir adrese tek bir USDT transferi icin yeterlidir. Ilk kez USDT alacak adresler icin 131.000 enerji kullanin.

Kod ornekleri

import requests

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

# Buy energy
resp = requests.post(f"{BASE}/energy/buy", headers=headers, json={
    "address": "TRecipientAddress...",
    "energy_amount": 65000,
    "duration_hours": 1,
})
print(resp.json())