Order
Create Order
POST
/
api/ordersServer
Authorization
AuthorizationRequiredBearer <token>
Enter JWT token
In: header
Request Body
application/jsonRequiredaddressRequiredstring
The Tron wallet address of the user placing the order. Must be a valid Tron address.
energyRequirednumber
The amount of energy the user wants to purchase, expressed in energy units.
periodstring
The time period for which the energy will be valid.
Default:
"1H"Value in: "1H"activateWalletboolean
If true, the system will attempt to activate the TRON wallet associated with the provided address. TRON accounts must be explicitly activated before use, and this requires sending 1 TRX to the address. The total cost will be the specified energy cost plus 1 TRX for activation.
callbackstring
Optional callback URL where a notification will be sent upon order completion. This URL should be accessible by the API service.