For the complete documentation index, see llms.txt. This page is also available as Markdown.
Sell the resources
Manually sell Energy or Bandwidth on TronSave by matching active buy orders with a signed on-chain delegate transaction.
The Sell Resources API lets a resource provider manually fill open buy orders on TronSave. The seller fetches active orders, builds and signs an on-chain DelegateResourceContract transaction, then submits the signed transaction to TronSave for order matching and payout.
Whitelist required. The Sell API is restricted to whitelisted wallets. Log in to TronSave and send your wallet address to support so it can be added to the whitelist. Once whitelisted, use the API Key generated from that wallet address to call the Sell endpoints.
TRON address to receive payment for the sell order. If not provided, the payment is sent to the delegator address.
isAllowSellForLockedDelegator
boolean
false (default) — do not sell to a target address currently locked on-chain.
true — sell to all target addresses.
signedTx*
object
Signed transaction. Note that it is a JSON object.
Request body example
Response (success)
Response (error)
Both Sell endpoints require a valid apikey header that belongs to a whitelisted address. Authentication and validation failures return one of the bodies below.
401 Unauthorized — missing API key (no apikey header):
401 Unauthorized — invalid API key:
400 Bad Request — schema validation (a required field is missing or invalid; the message names the offending field, e.g. orderId or signedTx):
404 Not Found — wrong route/path:
Business-logic failures (for example, the chosen order can no longer be fulfilled, or the signed transaction does not match the order) return the standard TronSave envelope with error: true and a descriptive message:
Rate limits: the global default is 15 requests/second; the Sell Resources endpoints are limited to 2–3 requests/second (3 req/s for active-global, 2 req/s for sell-manual). Exceeding the limit returns {"error": true, "message": "Rate limit reached"}.
Request examples
End-to-end example: building the signed transaction
The signed transaction in Step 2 is a TRON DelegateResourceContract that delegates resource from your wallet (the delegator) to the order's receiver. The example below uses TronWeb to fetch active orders, pick the highest-priced one, derive the freeze rate, build and sign the delegate transaction, and submit it.
This example targets the Nile testnet. The TronSave base URL https://api-dev.tronsave.io and TronWeb full host https://api.nileex.io are for testing. For mainnet, use https://api.tronsave.io and https://api.trongrid.io.
Next steps
Get Delegate Detail - get detailed information and the current status of a specific delegate using its delegateId.