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.
Endpoint
POST https://api.tronsave.io/v0/fast-charge-order-request
Headers
Request body
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
Track each order's matching status: Tracking Fast Charge Order.
Confirm completed orders to reclaim unused Energy and refund the difference: Confirm Request.
Need a key first? See Authentication.
Last updated