Estimate TRX

Estimate the TRX required to create fast charge orders before placing them, using your API key and prefunded internal account.

Estimate the total TRX needed to create one or more fast charge orders before placing them. The endpoint resolves the unit price, reports how many orders the system can currently match, and returns your current internal account balance.

To call this endpoint you need a TronSave API key tied to a prefunded internal account. See Authentication for how to obtain and use an API key.

Endpoint

POST https://api.tronsave.io/v0/fast-charge-estimate-order-request

Rate limit: 1 request per 2 seconds.

Headers

Name
Type
Description

apikey*

String

TronSave API key that is associated with the internal account. Required.

Request body

Name
Type
Description

receiver_count

String

Number of orders to create.

amount

Number

Amount of resource you want to buy.

max_price_accept

Number

Only create an order when the estimated price is less than this value.

resource_type

String

"ENERGY"

duration_sec

Number

The duration of the resource rental, in seconds.

Request body example

{
    "receiver_count": 10,
    "amount": 130000,
    "max_price_accept": 70,
    "resource_type": "ENERGY",
    "duration_sec": 900
}

Responses

200 OK β€” Success

Example success response:

400 Bad Request β€” Validation error

Returned when a required field is missing or invalid. The message names the offending field:

The endpoint may also return these business-logic errors:

401 Unauthorized β€” Missing or invalid API key

Returned when the apikey header is missing:

Returned when the apikey header is present but invalid:

429 Too Many Requests β€” Rate limit reached

Request examples

Next steps

Last updated