orders/{order_id} - TRON energy

This retrieves the details of a previously placed order. Use it to confirm a 202 Bandwidth order, or to look up the txid of any past delegation.

Path Parameter

ParameterTypeRequiredDescription
order_idstringYesThe orderId returned by delegate-energy or delegate-bandwidth

Request Sample

bashcurl -X GET https://services.getblock.io/v1/tron-energy/orders/0a6d59c4-9486-45b1-bf3f-74d075ad9b4c \
  -H "Authorization: Bearer YOUR_API_KEY"
javascriptimport axios from 'axios';

const orderId = '0a6d59c4-9486-45b1-bf3f-74d075ad9b4c';
const response = await axios.get(`https://services.getblock.io/v1/tron-energy/orders/${orderId}`, {
  headers: { Authorization: 'Bearer YOUR_API_KEY' },
});
console.log(response.data);
pythonimport requests

order_id = "0a6d59c4-9486-45b1-bf3f-74d075ad9b4c"
url = f"https://services.getblock.io/v1/tron-energy/orders/{order_id}"
headers = {"Authorization": "Bearer YOUR_API_KEY"}

response = requests.get(url, headers=headers)
print(response.json())
rustuse reqwest::header;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let client = reqwest::Client::new();
    let order_id = "0a6d59c4-9486-45b1-bf3f-74d075ad9b4c";

    let response = client
        .get(format!("https://services.getblock.io/v1/tron-energy/orders/{}", order_id))
        .header(header::AUTHORIZATION, "Bearer YOUR_API_KEY")
        .send()
        .await?;

    println!("{}", response.text().await?);
    Ok(())
}
gopackage main

import (
    "fmt"
    "io"
    "net/http"
)

func main() {
    orderID := "0a6d59c4-9486-45b1-bf3f-74d075ad9b4c"
    req, _ := http.NewRequest("GET", fmt.Sprintf("https://services.getblock.io/v1/tron-energy/orders/%s", orderID), nil)
    req.Header.Set("Authorization", "Bearer YOUR_API_KEY")

    resp, err := http.DefaultClient.Do(req)
    if err != nil {
        panic(err)
    }
    defer resp.Body.Close()

    body, _ := io.ReadAll(resp.Body)
    fmt.Println(string(body))
}

Response Sample

json{
  "data": {
    "id": "0a6d59c4-9486-45b1-bf3f-74d075ad9b4c",
    "resource_type": "energy",
    "target_address": "TUo8pycbvje9w2XYsNnnzw67bpPs4GLFyD",
    "status": "charged",
    "volume": 65000,
    "duration": "1h",
    "txid": "63285f35942a0a8552fa7664b5fd8d4c2140640e9c766fe44fda7e01c97233df",
    "price_usd": "0.40",
    "created_at": "2026-11-03T10:52:13Z",
    "updated_at": "2026-11-03T10:52:13Z",
    "charged_at": "2026-11-03T10:52:13Z"
  }
}

Response Sample Definition

FieldTypeDescription
idstringOrder ID
resource_typestring"energy" or "bandwidth"
target_addressstringAddress that received the resources
statusstringOrder status (see below)
volumeintegerAmount delegated
durationstringRental period
txidstringDelegation transaction hash. Empty until delivered
price_usdstringAmount charged. Empty until charged
created_atstringRFC 3339 time the order was placed
updated_atstringRFC 3339 time of the last status change
charged_atstringRFC 3339 time your balance was charged

Order Status

StatusMeaning
acceptedOrder accepted by the provider, awaiting on-chain confirmation
chargedResources delegated on-chain and your balance charged

An unknown order_id returns 404 with {"data": null, "error": "order not found"}.