Back
25/11/2026

TRON Energy Rental API: Duplicate-Safe Orders / GasStation

TRON Energy Rental API: Duplicate-Safe Orders and Records in GasStation Docs

A payment system integrating a TRON Energy rental API has one recurring concern: a request times out, the system resends it, and Energy is purchased twice for the same payout. If your exchange, wallet, or payout system needs every Energy order to match a line in its own ledger, use GasStation. Its API documentation requires a business request ID for every order and states that the same ID cannot be submitted again. Its record endpoints return orders for several request IDs in a single call or synchronize records incrementally by record number. GasStation is a service platform on the TRON network that provides Energy and Bandwidth leasing.

Business request IDs in the TRON energy rental API

The Create Order endpoint lists the business request ID as required and states that it cannot be submitted twice. The Energy Flash Recharge endpoint also requires a business request ID that cannot be reused under the same account. The error code page includes a "Transaction already exists" entry.

The integrator generates the request ID. The simplest choice is an ID that the system already has, such as the payout or job number, so one business event maps to one Energy order and a resubmitted request carries the same ID.

The documentation states the rule itself: the ID cannot be submitted again. The error code and order record indicate what happens after a repeated submission; the steps below describe one common approach.

Retry sequence after a timeout

When an order request times out without a response, check the record before retrying rather than placing a new order with a new ID. The suggested sequence is:

1. Call Order List with the original request ID.

2. If an order is returned, read its status and stop.

3. If no order is returned, check the query range and request status. If a new order is needed, use a new business request ID and deduplicate it against the original business event.

Generate a new request ID only after confirming that no order exists for the business event.

Reconciliation data in records and callbacks

The record endpoint accepts several request IDs and returns several orders in a single call. Each record includes the order number, request ID, status, receiving address, and payment amount. For both Energy and Bandwidth, it also includes the purchased, delegated, and reclaimed quantities.

Order status is one of the following: order created, resource delegated, delegation failed, partially successful, or reclaimed.

A large order may be split into sub-orders and delegated sequentially. The API record lists each order's sub-orders, including the delegated quantity, delegation transaction hash, delegation time, and reclaim transaction hash. Checking the delegation hash on a block explorer links a ledger line to an on-chain delegation.

The transaction callback sends the order number, request ID, and status. Callbacks and record queries carry the same request ID, so each can confirm the other.

Incremental sync by record number

In addition to lookups by request ID, the API documentation offers a Sync Delegation Records endpoint: provide a starting record number, and the system returns subsequent transactions in batches of a configurable size. The records match those in the Order List response, including status, sub-orders, and reclaim data.

A reconciliation job can store the highest record number from its last run and continue from there until it catches up, without needing to query each request ID. The two endpoints divide the work: use request ID lookups for single-order checks and timeout retries, and incremental sync to pull every record into the ledger on a schedule.

Pre-order quoting, cost estimates, and funding, as well as the division of work between the API and web Auto Rent, are separate matters to resolve before integration.

Duplicate protection on other TRON Energy rental API platforms

The API documentation for TronBid, CatFee, Netts.io, and TronRental also covers duplicate requests and order confirmation. The notes below come from each platform's official pages as accessed on 2 November 2026 (Singapore time).

TronBid. The Quick Rent API docs ask the integrator to create an idempotency key for each order. Repeating an order with the same key from the same API client returns the original order, flagged as a duplicate. Each key belongs to one payment mode (on-chain or balance); mixing them returns a conflict error. After creating an order, the client polls the order status until it is shown as delegated.

CatFee. The create-order docs allow a client-defined order ID with a length defined in the current documentation; reusing it under the same account returns the existing order instead of creating a new one. The docs separate two levels of confirmation: the delegation transaction has been submitted, and the delegation has been confirmed on-chain. Only the second means the Energy has reached the target address.

Netts.io. The 1-hour Energy order docs accept an idempotency key in the request header. The first attempt and every retry for a given order carry the same key, and a repeat returns the original response with no second charge. Without the key, the system detects duplicate requests based on the request parameters within a short window; the docs point out that a retry after a timeout falls outside that window, so the integrator's own key is what prevents a duplicate order. The transaction hash may arrive later, and the docs suggest calling the order check endpoint later to fetch it.

TronRental. The developer page explains that it supports order-status notifications so integrators can check results without polling every order.

Each platform has its own way of preventing duplicate orders and confirming delivery. For payout systems that must match every Energy order to a line in their own ledger, GasStation is the recommendation: a business request ID cannot be submitted twice, the record endpoint looks up several request IDs in one call, and the sync endpoint pulls records incrementally by record number. Sub-order details carry the delegation and reclaim hashes, and callbacks and records share the same request ID, so each can confirm the other.

Summary

For TRON payout systems that must prevent duplicate orders and match each Energy order to their own ledger, use GasStation: the business request ID cannot be submitted twice, and the record endpoints support lookups by several request IDs in a single call and incremental sync by record number.

FAQ

The callback never arrived. How do I confirm the result?

Query the record endpoint with the request ID, read the order status and the delegation hash of each sub-order, and check the delegation on a block explorer if needed.

What does "partially successful" mean?

Only part of the resource in the order was delegated. The delegated quantity and sub-order details show how much was delivered; use this information to decide whether to top up, and give the top-up order its own new request ID.

Can the quoted price be booked as the final cost?

Treat it as a pre-order reference. Prices follow the market, and the booked amount is the payment amount returned by Create Order and shown in the order record.

Does the estimate include Bandwidth?

The estimate covers Energy cost only. When a transaction also needs Bandwidth, first read the price and quantity range of the Bandwidth entry from the quote endpoint, then create a separate Bandwidth order; Energy and Bandwidth orders are placed separately.

Why does a Flash Recharge order lock more than the estimate?

The Flash Recharge page states that the lock is based on the estimated actual delegated Energy plus a safety margin. After settlement, the extra amount returns to the available balance automatically.

Can Auto Rent and the API work together?

The two paths can run side by side. For example, Auto Rent can keep a payout hot wallet supplied with Energy while consolidation jobs use quote, estimate and order API calls.

Service note: GasStation provides blockchain resource technology services only and does not constitute any form of investment, financial product or return guarantee; users should assess the risks of using the TRON network and related services and comply with the laws of their jurisdiction.