TrxRes API
API Call Sequence Diagram

1. Query Platform Current Configuration
Request
Method: POST
URL: /api/tronRent/pledgeConfig
Body:
Response
2.Query Account Information
Request
Method: GET
URL: /api/v1/account?fromAddress=TJAvEDAKXUzng4nh9H58XVLRR3ozekDi8P
Params:
fromAddress: String Required
Response
3.Query supported payment currencies
Request
Method: GET
URL: /api/v1/tokens
Response
4.Query Price Information
Request
Method: POST
URL:
/api/v1/order/price
Body:
Response
5.Create Rental Order
Request
Method: POST
URL:
/api/v1/order/create
Body:
Response
6.Upload Rental Payment Transaction
Request
Method: POST
URL: /api/tronRent/uploadHash
Body:
Response
7.Query Order Details
Request
Method: GET
URL: /api/v1/orderInfo?id=16zi4ynw_sdvn_qv8h_ujfc_crfsgyi07zat
Params:
id: Order ID String
Response
8.Query Order Details List
Request
Method: GET
URL: /api/v1/orderHistory?fromAddress=TJAvEDAKXUzng4nh9H58XVLRR3ozekDi8P&page=1&pageSize=20&sourceFlag=wallet01&sort=0&status=0&type=0,1
Params:
sourceFlag: Third-party identifier, String
fromAddress: Account address, String
page: Page number, Integer, optional, defaults to 1
pageSize: Page size, Integer, optional, defaults to 20, maximum supported value is 100
sort: Sort type, Integer, 0: Descending by order time, 1: Descending by price, 2: Descending by amount, 3: Descending by energy, optional, defaults to 0
status: Status, Integer, 0: Unpaid, 1: Paid, 2: Renting, 3: Redeeming, 4: Completed, 5: Invalid, optional, defaults to all
type: Order type, Integer, 0: Rental order, 1: Subsidy order, optional, defaults to all
Response
9.Query Batch Rental Price Information
Request
Method: POST
URL: /api/v1/order/batchPrice
Body:
Response
10.Create Batch Rental Order
Request
Method: POST
URL: /api/v1/order/batchCreate
Body:
Response
Others
Return Language Description Based on Header Accept-Language. If the language preference starts with "zh", the returned message will be in Chinese; otherwise, it will be returned in English.
Error Code
100
成功
Success
101
所需参数为空
Required parameter is empty
102
地址无效
Invalid address
103
您已达到今日领取限制
You have already reached the daily limit
105
订单不存在
The order does not exist
106
本月免费额度已用完
The monthly claim limit has been exceeded
107
超出交换范围
Out of exchange range
108
您需要在TokenPocket钱包中使用此功能
You need use this function in the TokenPocket wallet
109
今日领取额度已用完
The subsidy has been claimed out
110
24小时内已领取过了
Received
111
未找到委托权限
No delegation authority found
112
要成为能源供应商,能源抵押的TRX金额必须超过一定数量
To become an energy supplier, the energy staking TRX amount must be over
113
超过了最高允许的价格设置
Exceeded the price range allowed for setting
114
参数错误
Parameter error
115
超时
Timeout
116
当前用户存在取款操作,请稍后再试!
There is a withdrawal operation for the current user, please try again later!
117
订单存在异常,请联系客服人员帮助解决。
There is an exception in the order, please contact the customer service staff to help solve it.
118
该用户已存在
The user already exists
120
无效的签名
Invalid signature
121
地址未激活,请替换
The address is not activated, please activate it
122
该地址是合约地址,请替换
The address is a contract address, please replace it
123
地址数量超过1000个
The number of addresses exceeds 1000
124
账户余额不足
Insufficient account balance
125
剩余数量不足
Insufficient remaining quantity
126
剩余能量必须大于最小能量
The remaining energy must be greater than the minimum energy
127
USDT购买能量正在维护中
USDT purchased energy is under maintenance
128
目前能量不足,请稍后重试
Insufficient energy at the moment, please try again later
129
您今日兑换次数已达上限
Your redemption times today have reached the upper limit
130
今日兑换次数已达上限
The number of redemptions today has reached the upper limit
131
兑换码不存在
Coupon code does not exist
132
兑换码已使用
Coupon code has been used
133
兑换码已过期
Coupon code has expired
201
您的IP已达到每月领取限制
Your IP has reached the monthly collection limit
202
签名已过期
Signature has expired
203
交易信息不匹配
Transaction information does not match
204
订单已失效
Order has invalid
205
交易已过期
Transaction has expired
206
交易权限错误
Transaction permission error
207
目前带宽不足,请稍后重试
Insufficient bandwidth at the moment, please try again later
208
超过最大创建数量
Exceeding the maximum number of creations
501
未授权
Not author
502
访问限制
Access restriction
777
操作频繁,请稍后重试
Frequent operations, please try again later
999
内部错误
Service Internal Error
Last updated