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_price_sun": 42,
"energy_price_1k_trx": "2.75",
"bw_price_1k_trx": "9.60",
"trx_usd_rate": "0.234",
"burn_sun_per_energy": 100
}
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())