Create Order

Create one or more Fast Charge orders to rent Energy for a list of receiver addresses in a single request, authenticated with your TronSave API key.

Submit a Fast Charge order with a maximum acceptable price, a rental duration, and the list of addresses that should receive Energy. The endpoint returns the IDs of the created orders so you can track and later confirm them.

Fast Charge is an API-key feature. Every call is authenticated against a prefunded TronSave internal account. See Authentication for how to obtain a key and fund your account.

Endpoint

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

Rate limit: 1 request per 2 seconds.

Headers

Name
Type
Description

apikey*

String

TronSave API key that belongs to your internal account. See Authentication.

Request body

Name
Type
Description

amount

Number

Amount of resource want to buy.

duration_sec

Number

The duration of the rent resource, the time unit is equal second.

max_price_accept

Number

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

receivers

Array

Array receiver data. A list of wallet addresses receiving Energy.

deadline

Number

Maximum matching time in seconds. Exceeding it cancels the order and refunds.

Request body example

{
    "max_price_accept": 70,
    "amount": 130000,
    "duration_sec": 900,
    "deadline": 300,
    "receivers": [
        "TQk2eKHE9ZfCdVmyPnh8DfRMUF0123456",
        "TQk2eKHE9ZfCdVmyPnh8DfRMUF1111111"
    ]
}

Response

Success

Returns an array of order IDs.

Error

401 Unauthorized — the apikey header is missing:

401 Unauthorized — the supplied API key is invalid:

400 Bad Request — a required field is missing or invalid. The message names the offending field:

The endpoint may also return business-logic 400 errors (for example when the prefunded internal account balance is too low to cover the order).

Request examples

Next steps

Last updated