跳转到主要内容
POST
/
api
/
v1
/
bandwidth
/
rentals
启动自动续费租赁
curl --request POST \
  --url https://api.example.com/api/v1/bandwidth/rentals \
  --header 'Content-Type: application/json' \
  --data '
{
  "target_address": "<string>",
  "volume": 123
}
'
{
  "id": 123,
  "status": "<string>",
  "txid": "<string>",
  "daily_trx": "<string>",
  "amount_sun": 123,
  "next_billing_at": "<string>"
}

启动自动续费租赁

将带宽委托给 TRON 地址并保持委托,按日(1d)费率每 24 小时从余额扣费一次,直到您取消或余额不足以支付下一天。

请求体

target_address
string
必填
目标 TRON 地址(T… 格式,34 个字符)
volume
number
必填
保持委托的带宽数量(最小 350,最大 100,000)

响应

id
number
唯一租赁标识符
status
string
租赁状态 —— 成功时为 active
txid
string
链上委托交易 id
daily_trx
string
每日扣费金额(TRX)
amount_sun
number
已委托带宽(SUN)
next_billing_at
string
下一次每日扣费的 ISO 8601 时间戳

扣费方式

首日立即扣费。之后每 24 小时再次扣除每日金额。若余额不足以支付下一天,租赁结束并自动取消委托——充值后会自动恢复。可随时通过取消接口取消。

示例

curl -X POST https://api.tronrental.com/v1/bandwidth/rentals \
  -H "X-API-Key: your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "target_address": "TYourRecipientAddress1234567890abc",
    "volume": 350
  }'
Response
{
  "id": 4321,
  "status": "active",
  "txid": "abc123...",
  "daily_trx": "0.4205",
  "amount_sun": 1000000,
  "next_billing_at": "2026-06-11T04:30:00+00:00"
}