Get Estimate
GET/estimate
Returns TRONAgg's current price for resource_amount Energy delivered for 1 hour — what POST /buy would charge your balance right now (your VIP price if you have one).
Parameters:
resource_amount— amount of Energy to buy (in Energy units, not TRX)receiver_address(optional) — the address that will receive the Energy. Pass it to include the one-time account-activation fee when the address is not yet activated on TRON. Without it the quote leaves that fee out, whilePOST /buystill charges it.
The response includes the unit price in SUN, the total cost, any activation fee, and the order-size limits (min_amount / max_amount). Use it to preview costs before committing to a purchase.
Request
Responses
- 200
- 400
- 401
- 403
- 422
- 429
- 503
Successful Response
unsupported_resource or invalid_duration — an unknown resource_type, or a duration other than 1h.
The X-API-Key header is missing, invalid or revoked. detail is a plain string: API key required, Invalid API key or User not found.
The account is blocked (plain-string detail: Account is blocked), or ip_not_allowed — the request's source IP is outside this key's IP allowlist.
Request validation failed (e.g. resource_amount missing or not above 0) — detail is an array of field errors.
Rate limit exceeded — more than 1,000 requests per minute for your account (shared by all of its API keys and workspace sessions). detail is a plain string; wait the number of seconds in Retry-After, then retry.
Response Headers
Seconds until the rate-limit window resets.
service_unavailable — purchasing is temporarily unavailable.