Buyer leas energy
The same as "create purchase order"
POST
https://open.tronify.io/api/tronRent/addTronRentRecord
Headers
api-key*
String
Access the buyer management platform of tronify.io to obtain it. tradeType must be provided when it is userTrade.
Request Body
fromAddress*
String
user address(wallet address for buyer)
sourceFlag*
String
Source channel (Both sides need to agree on a name to represent the channel of the third parties)
pledgeNum*
String
amount of energy
orderType*
String
ENERGY
pledgeHour*
String
an integer value should be passed to indicate the number of hours for which the energy is frozen. Currently, only 0, 1, and 3 are supported.
pledgeDay*
String
an integer value should be passed to indicate the number of days for which the energy is frozen (e.g. 0, 1, 2, 3).
tradeType*
String
userTrade
pledgeAddress*
String
energy/bandwidth receiving address. multiple addresses can be submitted for bulk leas energy by separating them with commas.
pledgeMinute*
String
only 0, 10 are supported.
code example
Postman example
Last updated