orders/{order_id} - TRON energy

Example code for the orders/{order_id} JSON RPC method. Сomplete guide on how to use orders/{order_id} JSON RPC in GetBlock Web3 documentation.

This retrieves the details of a previously placed order. Useful if you received a 202 response and need to check the final status.

Path Parameter

pending

Order is being processed

success

Order completed successfully, resources delegated

failed

Order failed — no charge applied

Request Sample

curl -X GET "https://api.getblock.io/tron-energy/orders/success" \
  -H "Authorization: Bearer YOUR_API_KEY"

Response Sample

{
  "order_id": "clxyz123...",
  "status": "success",
  "target_address": "TUo8pycbvje9w2XYsNnnzw67bpPs4GLFyD",
  "resource_type": "energy",
  "volume": 65000,
  "duration": "3d",
  "price_usd": "4.97",
  "trx_spent": 20.12,
  "provider_order_id": "12345",
  "created_at": "2026-02-08T12:00:00.000Z"
}

Last updated

Was this helpful?