Покупка bandwidth для адреса TRON
cURL
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 } '
order_id
status
price_trx
(volume / 1000) × 9.6 / 24 + 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 }'
{ "order_id": 5678, "address": "TTargetAddress...", "bandwidth_amount": 1000, "duration_hours": 24, "price_trx": "9.80", "status": "pending" }