> ## 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.

# Bandwidth satın al

> TRON adresi için bandwidth satın alın

## Bandwidth satın al

Belirtilen TRON adresine bandwidth devreder. Maliyet hesap bakiyenizden düşülür.

### İstek gövdesi

<ParamField body="target_address" type="string" required>
  Hedef TRON adresi (T... formatı, 34 karakter)
</ParamField>

<ParamField body="volume" type="number" required>
  Devredilecek bandwidth miktarı (min 350, maks 100.000)
</ParamField>

<ParamField body="duration" type="string" required>
  Kiralama süresi: `"1h"` (1 saat) veya `"1d"` (24 saat). `"24h"` veya sayısal saat değerleri kullanmayın; `"1d"` kullanın.
</ParamField>

### Yanıt

<ResponseField name="id" type="number">
  Benzersiz sipariş kimliği
</ResponseField>

<ResponseField name="status" type="string">
  Sipariş durumu: `pending`, `filled`, `failed`
</ResponseField>

<ResponseField name="txid" type="string | null">
  Delegasyon yayınlandıktan sonraki on-chain işlem kimliği (`pending` iken null)
</ResponseField>

<ResponseField name="price_trx" type="string">
  Bakiyeden düşülen toplam maliyet (TRX)
</ResponseField>

<ResponseField name="reclaim_at" type="string | null">
  Kiralanan bandwidth geri alındığında ISO 8601 zaman damgası
</ResponseField>

### Fiyatlandırma

Fiyat = `(volume × price_sun) / 1.000.000 + 0.2 TRX` sabit ücret. Güncel `price_sun_1h`, `price_sun_1d` ve `fixed_fee_trx` için `GET /v1/bandwidth/prices` kullanın.

### Örnek

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

  ```python Python theme={null}
  import requests

  resp = requests.post(
      "https://api.tronrental.com/v1/bandwidth/buy",
      headers={"X-API-Key": "your_api_key"},
      json={
          "target_address": "TYourRecipientAddress1234567890abc",
          "volume": 16000,
          "duration": "1d",
      },
  )
  print(resp.json())
  ```

  ```javascript JavaScript theme={null}
  const resp = await fetch("https://api.tronrental.com/v1/bandwidth/buy", {
    method: "POST",
    headers: {
      "X-API-Key": "your_api_key",
      "Content-Type": "application/json",
    },
    body: JSON.stringify({
      target_address: "TYourRecipientAddress1234567890abc",
      volume: 16000,
      duration: "1d",
    }),
  });
  console.log(await resp.json());
  ```
</CodeGroup>

```json Response theme={null}
{
  "id": 5678,
  "price_trx": "10.28",
  "status": "filled",
  "txid": "abc123...",
  "reclaim_at": "2026-06-10T21:00:00+00:00"
}
```

<Tip>
  Ücretsiz günlük bandwidth tükendiğinde **350 bandwidth** bir USDT TRC-20 transferini karşılar.
</Tip>
