Create Smart Order
api
/orders
/smart
Authorization
Authorization
RequiredBearer <token>
Enter JWT token
In: header
Request Body
application/json
Requiredaddress
Requiredstring
The Tron wallet address of the user placing the order. Must be a valid Tron address.
recipientAddress
Requiredstring
The Tron wallet address to which the TRC20 token will be sent. Must be a valid Tron address provided by the user as the recipient.
tokenContract
string
Optional TRC20 contract address indicating the token to be used for the transaction.
period
string
The time period for which the energy will be valid.
"1H"
Value in: "1H"
activateWallet
boolean
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.
callback
string
Optional callback URL where a notification will be sent upon order completion. This URL should be accessible by the API service.