मुख्य सामग्री पर जाएं
POST
/
api
/
v1
/
bandwidth
/
buy
बैंडविड्थ खरीदें
curl --request POST \
  --url https://api.example.com/api/v1/bandwidth/buy \
  --header 'Content-Type: application/json' \
  --data '
{
  "address": "<string>",
  "bandwidth_amount": 123,
  "duration_hours": 123
}
'

बैंडविड्थ खरीदें

निर्दिष्ट TRON एड्रेस को बैंडविड्थ डेलिगेट करता है।

अनुरोध बॉडी

address
string
आवश्यक
लक्ष्य TRON एड्रेस
bandwidth_amount
number
आवश्यक
बैंडविड्थ की मात्रा (न्यूनतम 350, अधिकतम 100,000)
duration_hours
number
आवश्यक
किराए की अवधि घंटों में

रिस्पॉन्स

order_id, status, और price_trx के साथ ऑर्डर ऑब्जेक्ट लौटाता है।

मूल्य निर्धारण

बैंडविड्थ मूल्य: (volume / 1000) × 9.6 / 24 + 0.2 TRX 0.2 TRX का निश्चित शुल्क सभी बैंडविड्थ ऑर्डर पर लागू होता है।

उदाहरण

curl -X POST https://api.tronrental.com/v1/bandwidth/buy \
  -H "X-API-Key: your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "address": "TTargetAddress...",
    "bandwidth_amount": 1000,
    "duration_hours": 24
  }'
Response
{
  "order_id": 5678,
  "address": "TTargetAddress...",
  "bandwidth_amount": 1000,
  "duration_hours": 24,
  "price_trx": "9.80",
  "status": "pending"
}