create bandwidth order
create bandwidth 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
Name
Type
Description
fromAddress*
String
user address(wallet address for buyer)
pledgeAddress*
String
bandwidth receiving address.
pledgeNum*
String
amount of bandwidth
orderPrice*
String
price(unit: sun),default 900
The value must be greater than 700
orderType*
String
BANDWIDTH
pledgeDay
String
Rental Time, (unit: day)
1-30
(pledgeDay, pledgeHour cannot be empty simultaneously)
sourceFlag*
String
Source channel (Both sides need to agree on a name to represent the channel of the third parties)
pledgeHour
String
Rental Time, (unit: hour)
[1,3]
{
"resCode": 100,
"resMsg": "Success",
"data": {
"orderId": "16zi4ynw_sdvn_qv8h_ujfc_crfsgyi07zat",
"platformAddr": "TAdm9uEjiDge14T6AkZuo8vCNBEV1Fitmn",//trx recieving platform address
"fromAddress": "TKghVbeEzvrV8GLK3YE1gRrjVHSf8rGB6k",//wallet address
"pledgeAddress": "TKghVbeEzvrV8GLK3YE1gRrjVHSf8rGB6k",//energy recieving address
"pledgeDay": 3,
"source": "tronLink",
"orderType": "ENERGY",
"orderPrice": 900,
"pledgeNum": 3500,
"pledgeTrxNum": 9.45
}
}code example
Postman example

Last updated