create engerg order
create engergy purchase order
Endpoint usage
POST
https://open.tronify.io/api/tronRent/addTronRentRecord
The fields with * are required, and the fields without * are optional
Request Body
fromAddress*
String
user address(wallet address for buyer)
pledgeAddress*
String
energy receiving address.
pledgeNum*
String
amount of energy
orderPrice
String
price(unit: sun)
When tradeType
is equal to "freedom," it is optional and needs to be greater than 30
default:95
When tradeType
is equal to "fastTrade" or "EnenryTreasure," it is not need.
orderType*
String
ENERGY
pledgeDay
String
Rental Time(unit: day)
When tradeType
is equal to "freedom," it is required. values: 3-30
When tradeType
is equal to "fastTrade" or "EnenryTreasure," it is optional. values: 1-30
(
pledgeDay
, pledgeHour
, and pledgeMinute
cannot be empty simultaneously)
sourceFlag*
String
Source channel (Both sides need to agree on a name to represent the channel of the third parties)
tradeType
String
[freedom,
fastTrade,
EnenryTreasure]
default: freedom
pledgeHour
String
Rental Time(unit: hour)
When tradeType
is equal to "fastTrade" or "EnenryTreasure," it is optional.
values: [1, 3]
pledgeMinute
String
Rental Time(unit: minute)
When tradeType
is equal to "fastTrade" or "EnenryTreasure," it is optional.
values: [10]
code example
Postman example
Last updated