跳转到主要内容
GET
/
api
/
v1
/
orders
/
{order_id}
查询订单
curl --request GET \
  --url https://api.example.com/api/v1/orders/{order_id}

查询订单

返回能量或带宽订单的当前状态和完整详情。

路径参数

order_id
number
必填
订单 ID —— 由 Buy Energy 或 Buy Bandwidth 返回的 id

响应

返回完整的订单对象,包括 statustypevolumeprice_trxdelegate_txid 和时间戳。

订单状态

状态说明
pending订单已接收,正在委托中
filled能量或带宽委托成功
failed委托失败
reclaimed租用期结束后带宽已回收(仅带宽订单)

示例

curl https://api.tronrental.com/v1/orders/12345 \
  -H "X-API-Key: your_api_key"
Response
{
  "id": 12345,
  "type": "energy",
  "target_address": "TRecipientAddress...",
  "volume": 65000,
  "duration": "1h",
  "price_trx": "1.79",
  "status": "filled",
  "delegate_txid": "a1b2c3d4e5f6...",
  "undelegate_txid": null,
  "reclaim_at": null,
  "source": "api",
  "created_at": "2026-06-10T04:30:00Z"
}