Basic Information
This interface creates orders for quick transactions. When energy is sufficient, it generally takes 3-6 seconds for energy to be sent to the receiving address. If the pledgeAddress (energy receiving address) is not activated, it will be automatically activated.
POST/v1/tron/order
Create Order
Create an order to purchase energy
Required Parameters
- Name
pledgeAddress
- Type
- string
- Description
Receiving address
- Name
rentalCount
- Type
- number
- Description
Rental quantity (minimum 64000)
- Name
period
- Type
- string
- Description
Supported periods: min:minutes, h:hours, d:days
10min1h1d3d7d14d30d
Request
POST
/v1/tron/ordercurl -G https://api.eopen.io/api/v1/tron/order \
-H "API-KEY: {apiKey}" \
-d "pledgeAddress=TRxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
-d "rentalCount=65000" \
-d "period=1h"
Response
{
"code": 0, // Order created successfully
"msg": "Order generated successfully, please check order processing status later",
"time": "1741801809",
"data": {
"id": "OR20250312175009BJ1QRQH7", // Order ID: orderId
"amount": 0.8, // Payment amount
"currency": "USDT" // Payment currency TRX/USDT
}
}
GET/v1/tron/price
Estimate Order Payment Amount (Price)
Get estimated order payment amount
Required Parameters
- Name
rentalCount
- Type
- number
- Description
Rental quantity
- Name
period
- Type
- string
- Description
Supported periods: min:minutes, h:hours, d:days
10min1h1d3d7d14d30d
Request
GET
/v1/tron/pricecurl -G https://api.eopen.io/api/v1/tron/price \
-H "API-KEY: {apiKey}" \
-d "rentalCount=65000" \
-d "period=1h"
Response
{
"code": 0,
"msg": "Get price successfully",
"time": "1741848594",
"data": {
"sun": "65", // Unit price
"trxPrice": "4.23", // TRX amount needed for purchase
"period": "1h", // Duration
"resourceType": "ENERGY", // Resource type
"rentalCount": 65000 // Rental quantity
}
}
GET/v1/tron/history
Order History
Query recently completed orders
Required Parameters
- Name
orderId
- Type
- string
- Description
Order ID
Request
GET
/v1/tron/historycurl -G https://api.eopen.io/api/v1/tron/history \
-H "API-KEY: {apiKey}" \
-d "orderId=a1ce54f9d354ed63a98789ce70dde889"
Response
{
"code": 0,
"msg": "Get order details successfully",
"time": "1741855953",
"data": {
"orderId": "OR202503122009129TAH56UX", // Order Id
"amount": "0.39684744", // Payment amount
"currency": "USDT", // Payment currency
"status": "COMPLETED", // Order status: COMPLETED, PENDING, FAILED, PROCESSING, REFUNDED
"txId": "6877a8e3217ce8b2ef409036c5d4d92c93641495bcba0c3e74da5e6d54fb03e5", // txID
"pledgeAddress": "TTEdJLKjC9chpDGB9Kao1XGUqSK71DVMDG", // Receiving address
"createdAt": 1741810152, // Creation time
"rentalCount": "32000", // Rental quantity
"period": "1h", // Duration
"resourceType": "ENERGY" // Resource type
}
}