# Tronify 简介

Tronify : 不仅是Tron能量，更是信任与服务

<figure><img src="https://437826888-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4K3XSHX743UkF46Owwyj%2Fuploads%2FyXKgcIBMevCIhxQnSJJ8%2Fimage_2025-11-27_14-06-18.png?alt=media&amp;token=68d6e7f7-2cfc-4325-8e76-6288d7b09762" alt=""><figcaption></figcaption></figure>

在 **TRON 网络**中，**带宽**与**能量**是用于抵扣交易手续费的两种核心资源，旨在提升网络效率、降低用户成本。

* **带宽（Bandwidth Points）**：用于抵扣普通转账（如 TRX 转账）所消耗的带宽点，账户每日带宽自动恢复，或通过冻结 TRX 获取，带宽消耗无需支付 TRX。
* **能量（Energy）**：用于抵扣智能合约调用等复杂交易所消耗的计算资源。当账户可用能量不足时，将自动燃烧 TRX 获取能量，消耗的 TRX 即为实际手续费。冻结 TRX 可获得能量，冻结量越多，能量越多。

对于频繁进行链上操作的个人或企业来说，自行冻结大量 TRX 获取能量不仅成本高、周期长，更会占用资产流动性，影响资金灵活安排。

**Tronify** 正是为此而生，用户无需自行冻结 TRX，可按需租赁能量，按量计费，灵活便捷。

#### **USDT 转账中的能量消耗情况**

* **能量消耗与转账金额无关**，与接收地址是否持有 USDT 相关。
* 转账至持有 USDT 的地址，消耗约 **6.4 万能量**；转账至不持有 USDT 的地址，消耗约 **13 万能量**。

| 场景       | 消耗能量  | 燃烧 TRX  | Tronify 租赁费用 | 预计节省     | 节省比例  |
| -------- | ----- | ------- | ------------ | -------- | ----- |
| 转账有 U 地址 | 6.4 万 | 6.4 TRX | 4.72 TRX     | 1.68 TRX | 约 26% |
| 转账无 U 地址 | 13 万  | 13 TRX  | 8.45 TRX     | 4.55 TRX | 约 35% |

通过 Tronify 提前租赁能量，可有效避免燃烧 TRX，显著降低每笔转账手续费成本。

### **平台优势**

* **支持 USDT/TRX多币种支付**：支持 USDT/TRX 支付租赁费用，方便快捷。
* **大幅降低能量成本**：按需租赁，远低于燃烧 TRX 成本，节约开支。
* **释放 TRX 流动性**：无需冻结或锁仓 TRX，资产灵活调配。
* **即租即用，快速交付**：无需等待冻结周期，实时交付能量。
* **适用于多种业务场景**：个人转账、批量空投、企业级 DApp 均适用。

### **API 使用流程**

1️⃣ 根据交易需求计算所需能量\
2️⃣ 查询报价：调用 `/api/tronRent/queryPreorderInfo` 获取能量报价\
3️⃣ 创建订单：调用 `/api/tronRent/addTronRentRecord`，支持 TRX / USDT 支付\
4️⃣ 上传哈希：对返回数据签名后，调用 `/api/tronRent/uploadHash` 上传交易哈希\
5️⃣ 验证哈希：验证能量租赁交易哈希是否成功\
6️⃣ 查询状态：调用 `/api/tronRent/trades` 查询订单状态


# Tronify skills

### 通过 Tronify API 在 TRON 区块链上租赁能量和带宽。支持使用 TRX 和 USDT 进行支付。当用户需要租赁 TRON 能量或带宽、查询能量价格，或创建 TRON 资源购买订单（包括可附带 TRX 的 USDT 能量订单）时使用。

#### 1. 支持使用TRX租赁能量和带宽

#### 2. 支持使用USDT租赁能量、带宽和换取TRX

```
npx skills add https://github.com/bridgers-skills/tronify-rent-skill
```


# 基本说明

> 本文档是用来说明部分接口中要注意的一些事项以及更详细的说明，具体接口入参、出参信息

## 时序图

<figure><img src="https://437826888-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4K3XSHX743UkF46Owwyj%2Fuploads%2FWrUpUMX4ZzeTIY1VWDBR%2F%E6%88%AA%E5%B1%8F2025-07-18%2010.31.22.png?alt=media&amp;token=47ee8cc0-0745-42e3-a433-4967aa21ea80" alt=""><figcaption></figcaption></figure>

## Dapp URL

{% embed url="<https://www.tronify.io/>" %}

### Tronify地址

```
TDii6vao7xyWg2rKPbCPWVRpSmne8xcqYx
TPyiQrP19oaLu5bQcn1UJDuRqvZAJvYqjQ
TWXcJPJhtdVWNiLRU5b4iVL2wJXdiJ3Bmj
TXSM8RcBkz1LoXZMn5by3MpavDg6vTQcF4
TXMj5g5mnG9rKobCVcPMVi5jvHgaTjTf26
TWNxrFiucT9iSw8UyQtPUYvHWD4PzSLELd
TWyFnX76Z3s67rRMy2Zg35soBXyGm4tpr9
TK8J3MoJQUMuC8LxRC3RQEyZxsveqVGZ5r
TREqQMNat1hjaaR7EZJnNx9nDh2gXz8yTQ
TAG33mrmAuzkj67zUY1qRNfYMinGcGqVh5
TCsBNUjcG7cgRBqSiW4ZqFF66AZ2MrxbVt
TXYqcWRnNP1bGsa9tzjsEJiKAYwMRonwMv
TX4oTB6a8dodEYSohYAGZn46uWSWWiiQUR
TAdm9uEjiDge14T6AkZuo8vCNBEV1Fitmn
TUFXua1qzfCsFpcZEGXaU7oGFURqQ7RQpy
TXbCg2a7YemAx4RZ3XNN6cN1jm4FDNb14P
TEUT3XQEtXBSW4C4eAj8gmr9wmPVHXQYfP
TPCaARfnhnK25574Z6KsmcQJDDus73YczS
TS65mj93xnZxs7h2wm6tGkxvLL96pY6hwA
TJigermUxt78sMudYQxEYRGJ1v55VdveT4
TVHx6eoMciT3Q74EWHh3sdjS3wZUofmbvx
TYF3zv5MTKQXTEtAsL5cGeswbg41RAvpyf
TEqUSc9jx15hY7vQxkaoaPJ3rbAAGkx5Kj
TMRm99fAZtfkHk1Err4FZZvpvFV5Qw53iu
TKFUauYQVtA5qRJeNRVYEx7XXu2WivgLkL
TYB8rsrUnVznCVxgfyHjTp9Tib4k7SvFDJ
TBWFVPh9br4zWrxwFAgdvTjDqghFT5wjSA
TAbBKxmhYo7dPvzB1yjqNDyvnEXNnyjscX
TYCYkF8rBxqjXo7Ud8EcHdV9xMaVBFtmSr
TKXVy2Cu1qs88mERExJRyPSU27UF5othef
THKPA7LiBbz11awNahzjuSLG7jWGs6hWfx
TCW24jbcZv4DyR3huRMugn1uaPf9xLxZ58
TKZfmb7vdg1RdcGE1GKnT4x2gxg5cUkV65
TP88nB6xFw9uiHq61RKiHsbqcVz3TAqXQy
TFcuhXetNGVVsCLo1J7KcNDbUVeSmAw9Rq
TRt5oX8YExs34PP2kxgXLn1RsEiJisTmf2
TXb6CuQjDNFwBHZ4PLD5sHgFpUpfWgjjQD
TFMF7M9agBQSTEQbkqq3FG3B1253JTDynF
THiJdLGHCwSZJT6zzrCNur97mSMUTk2y5S
TRoEqn3bA7oXCkLdpKEZ1YkpB5utrv7qB9
TPxRFBWkLVqTxuLw1CWfbcRXx1y9X8T3J8
TMDe8VH2hgFD3rijooZcNAotDfrRRAtJVC
TWq7KHPjfbwvzQXjAzvpJVwJGm5rYA3Fhn
TUhQr74GpTu67EKYmgjHvoA8hqSYCDtA7x
TEqz4xyGEaX8R37wnT4ktxEDkUuyGyzFEf
TMq6fQ7ZHHA9AJezXmEBEEupYh4JTGzJFj
TUSYcK5yf8Et4xNTiUcpfZwmhFsxfdoooo
```


# 获取相关配置信息

获取配置信息

### 接口调用

<mark style="color:green;">`POST`</mark> `https://open.tronify.io/api/tronRent/pledgeConfig`

**以下参数带\*字段为必填，不带\*号为选填**

#### Request Body

| Name                                         | Type   | Description              |
| -------------------------------------------- | ------ | ------------------------ |
| address<mark style="color:red;">\*</mark>    | String | 用户地址（钱包地址）               |
| sourceFlag<mark style="color:red;">\*</mark> | String | 渠道来源（需要双方约定一个名称来代表三方的渠道） |

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
    "resCode": 100,
    "resMsg": "Success",
    "data": {
        "defaultDay": 3, //默认冻结天数
        "defaultEnergyPrice": 60, //默认购买能量价格 
        "topEnergyPrice": 420, //购买能量最高价格
        "lowEnergyPrice": 30, //购买能量最低价格
        "topEnergyCanBuy": 1000000000, //能量购买最大值
        "lowEnergyCanBuy": 15000, //能量购买最小值
        "defaultWidthPrice": 900, //默认购买带宽价格
        "topWidthPrice": 2000, //购买带宽最高价格
        "lowWidthPrice": 600, //购买带宽最低价格
        "topWidthCanBuy": 10000000, //带宽购买最大值
        "lowWidthCanBuy": 3500, //带宽购买最小值
        "refundRate": 0.1, //取消订单手续费
        "sellerStakingTrxMinLimit": 10000, //卖家质押trx最小限制
        "energyPriceMaxSun": 1000, //卖家授权出售能量最高限制
        "sendEnergy": 0,
        "receiveEnergy": 0,
        "sendWidth": 0,
        "receiveWidth": 0,
        "sun_1d": 95,
        "sun_1h": 85,
        "sun_2d": 90,
        "sun_3h": 90,
        "sun_10m": 80,
        "treasureType": [
            {
                "type": "transfer",
                "value": "32000"
            }
        ]
    }
}
```

{% endtab %}
{% endtabs %}

### 调用示例

{% tabs %}
{% tab title="JavaScript" %}

```
// example
const params = {
    address: 'TKghVbeEzvrV8GLK3YE1gRrjVHSf8rGB6k',
    sourceFlag: 'tronLink'
}
 const res = await axios.post('https://open.tronify.io/api/tronRent/pledgeConfig',params)
 console.log(res)
 if(res.resCode === '100'){
   //...  
 }
```

{% endtab %}
{% endtabs %}

### Postman 示例

<figure><img src="https://437826888-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4K3XSHX743UkF46Owwyj%2Fuploads%2Fyats97JjeUbA97kOnz33%2F1.jpg?alt=media&amp;token=a0e7b614-d1d6-452e-96ae-a6331da9448d" alt=""><figcaption></figcaption></figure>


# 查询租赁能量所需费用

### 接口调用

<mark style="color:green;">`POST`</mark> <https://open.tronify.io/api/tronRent/queryPreorderInfo>

**以下参数带\*字段为必填，不带\*号为选填**

#### Request Body

| Name                                            | Type   | Description                                                                                                               |
| ----------------------------------------------- | ------ | ------------------------------------------------------------------------------------------------------------------------- |
| fromAddress<mark style="color:red;">\*</mark>   | String | 用户地址（创建买单的钱包地址）                                                                                                           |
| pledgeAddress<mark style="color:red;">\*</mark> | String | 能量/带宽接收地址                                                                                                                 |
| pledgeNum<mark style="color:red;">\*</mark>     | int    | 能量数量（需大于15000）                                                                                                            |
| tradeType<mark style="color:red;">\*</mark>     | String | fastTrade                                                                                                                 |
| sourceFlag<mark style="color:red;">\*</mark>    | String | 渠道来源（需要双方约定一个名称来代表三方的渠道）                                                                                                  |
| orderType<mark style="color:red;">\*</mark>     | String | ENERGY                                                                                                                    |
| pledgeDay<mark style="color:red;">\*</mark>     | String | <p>租用时长，单位（天）</p><p>支持0-30天</p><p>(<code>pledgeDay</code>, <code>pledgeHour</code> ，<code>pledgeMinute</code> 不能同时为0)</p> |
| pledgeHour<mark style="color:red;">\*</mark>    | String | <p>租用时长，单位（小时）</p><p>取值0、1、3</p>                                                                                          |
| pledgeMinute<mark style="color:red;">\*</mark>  | String | <p>租用时长，单位（分钟）</p><p>取值0、10</p>                                                                                           |
| extraTrxNum                                     | String | <p>用户想要额外接收到的trx数量<br>有效传值0或者\[0.8, 500]，0表示只需要能量，不需要获得trx（usdt租赁能量模式必传）</p>                                              |
| pledgeBandwidthNum                              | String | <p>用户想要额外接收到的带宽数量<br>如果传0或者不传，表示不需要租赁带宽</p>                                                                               |

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
    "resCode": 100,
    "resMsg": "Success",
    "data": {
        "fromAddress": "TKghVbeEzvrV8GLK3YE1gRrjVHSf8rGB6k",//用户钱包地址
        "pledgeAddress": "TKghVbeEzvrV8GLK3YE1gRrjVHSf8rGB6k",//用户接收能量地址
        "pledgeDay": "0",
        "pledgeHour": "0",
        "pledgeMinute": "10",
        "source": "tronLink",
        "orderType": "ENERGY",
        "orderPrice": 90,
        "pledgeNum": 96400,
        "pledgeTrxNum": "10.512",//trx模式支付数量
        "usdtModeAvailable": true,
        "payCoinCode": "USDT", //支付币种
        "payCoinAmt": "3.124527",//usdt模式支付数量
        "extraTrxNum": "0.8",//usdt模式用户想要额外得到的trx数量
        "pledgeBandwidthNum": "0",//usdt模式用户想要额度得到的带宽数量
        "activeAccountFee": "0",//usdt模式激活地址费用
        "purchaseTRXFee": "0.397105",//usdt模式用户想要额外得到trx的费用
        "purchaseBandwidthFee": "0",//usdt模式用户想要额度得到带宽的费用
        "purchaseEnergyFee": "2.727422"//usdt模式用户租赁能量的费用
    }
}
```

{% endtab %}
{% endtabs %}

### 调用示例

{% tabs %}
{% tab title="JavaScript" %}

```
// example
const params = {
    fromAddress: 'TKghVbeEzvrV8GLK3YE1gRrjVHSf8rGB6k',
    pledgeAddress: 'TKghVbeEzvrV8GLK3YE1gRrjVHSf8rGB6k',
    tradeType: 'fastTrade',
    pledgeDay: '0',
    pledgeHour: '0',
    pledgeMinute: '10',
    orderType: 'ENERGY',
    pledgeNum: 32000,
    sourceFlag: 'tronLink',
    extraTrxNum: '0.8',
    pledgeBandwidthNum: '0'
}

const res = await axios.post('https://open.tronify.io/api/tronRent/queryPreorderInfo',params)
console.log(res)
if(res.resCode === '100'){
    //...

}
```

{% endtab %}
{% endtabs %}

### Postman 示例

<figure><img src="https://437826888-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4K3XSHX743UkF46Owwyj%2Fuploads%2FsSrHGx5vY0xkCAW0sRu4%2F21.jpg?alt=media&amp;token=7edd4dc7-45c7-4e4f-a59e-08c62ea9393f" alt=""><figcaption></figcaption></figure>


# 创建trx能量买单

创建购买能量的订单

### 接口调用

<mark style="color:green;">`POST`</mark> `https://open.tronify.io/api/tronRent/addTronRentRecord`

**以下参数带\*字段为必填，不带\*号为选填**

#### Request Body

| Name                                            | Type   | Description                                                                                                                                                                 |
| ----------------------------------------------- | ------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| fromAddress<mark style="color:red;">\*</mark>   | String | 用户地址（创建买单的钱包地址）                                                                                                                                                             |
| pledgeAddress<mark style="color:red;">\*</mark> | String | 能量                                                                                                                                                                          |
| pledgeNum<mark style="color:red;">\*</mark>     | int    | 能量数量（需大于15000）                                                                                                                                                              |
| orderPrice                                      | String | <p>价格</p><p>交易类型为freedom时，必选，支持30及以上数值</p><p>交易类型为fastTrade时，不可选</p>                                                                                                        |
| tradeType                                       | String | <p>交易类型（</p><p>freedom：自助交易，能量可以按照天冻结</p><p>fastTrade: 快速租赁，支持按分钟、小时和天租赁</p>                                                                                                |
| orderType<mark style="color:red;">\*</mark>     | String | ENERGY                                                                                                                                                                      |
| sourceFlag<mark style="color:red;">\*</mark>    | String | 渠道来源（需要双方约定一个名称来代表三方的渠道）                                                                                                                                                    |
| pledgeDay                                       | String | <p>租用时长，单位（天）</p><p>交易类型为freedom时，必选，支持3-30天</p><p>交易类型为fastTrade时，可选，支持1-30天</p><p>(<code>pledgeDay</code>, <code>pledgeHour</code> ，<code>pledgeMinute</code> 不能同时为空)</p> |
| pledgeHour                                      | String | <p>租用时长，单位（小时）</p><p>交易类型为fastTrade时，可选，取值1，3</p>                                                                                                                           |
| pledgeMinute                                    | String | <p>租用时长，单位（分钟）</p><p>交易类型为fastTrade时，可选，取值10</p>                                                                                                                            |
| pledgeBandwidthNum                              | String | <p>用户想要额外接收到的带宽数量                                                                                                                                                           |
| <br>传0或者不传，表示不需要租赁带宽</p>                        |        |                                                                                                                                                                             |

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
    "resCode": 100,
    "resMsg": "Success",
    "data": {
        "orderId": "16zi4ynw_sdvn_qv8h_ujfc_crfsgyi07zat",
        "platformAddr": "TAdm9uEjiDge14T6AkZuo8vCNBEV1Fitmn",//转trx的目标地址
        "fromAddress": "TKghVbeEzvrV8GLK3YE1gRrjVHSf8rGB6k",//钱包地址
        "pledgeAddress": "TKghVbeEzvrV8GLK3YE1gRrjVHSf8rGB6k",//接收能量地址
        "pledgeDay": 3,
        "source": "tronLink",
        "orderType": "ENERGY",
        "orderPrice": 110,
        "pledgeNum": 500,
        "pledgeTrxNum": 0.165
    }
}
```

{% endtab %}
{% endtabs %}

### 调用示例

{% tabs %}
{% tab title="JavaScript" %}

```
// example
const params = {
    fromAddress: 'TKghVbeEzvrV8GLK3YE1gRrjVHSf8rGB6k',
    pledgeAddress: 'TKghVbeEzvrV8GLK3YE1gRrjVHSf8rGB6k',
    tradeType: 'fastTrade',
    pledgeDay: '3',
    orderType: 'ENERGY',
    orderPrice: 110,
    pledgeNum: 32000,
    sourceFlag: 'tronLink'
}
//调用创建能量买单接口
const res = await axios.post('https://open.tronify.io/api/tronRent/addTronRentRecord',params)
console.log(res)
if(res.resCode === '100'){
    const orderId = res.data.orderId;
    const transaction = res.data.transaction;
    //签名交易数据
    const signedTx = await tronWeb.trx.sign(transaction)
    const params = {
        "orderId": orderId,
        "fromHash": signedTx.txID,
        "signedData": signedTx
    };
    //使用签名后的数据调用上传买单哈希接口，完成交易
    const rest = await axios.post('https://open.tronify.io/api/tronRent/uploadHash', params );
    console.log(rest)
    if(rest.resCode === '100'){
        // ...
    }

}
```

{% endtab %}
{% endtabs %}

### Postman 示例

<figure><img src="https://437826888-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4K3XSHX743UkF46Owwyj%2Fuploads%2FJQZFOvte0NOhCqvDSnmV%2F2.jpg?alt=media&amp;token=4001a35c-dedf-4346-bc17-2b00981f02d8" alt=""><figcaption></figcaption></figure>


# 创建usdt能量买单

创建购买能量的订单。支付给tronify USDT 的那笔转账所需能量会自动包含，您只需要下单实际业务转账所需的能量数量

### 接口调用

<mark style="color:green;">`POST`</mark> `https://open.tronify.io/api/tronRent/addTronRentRecord`

**以下参数带\*字段为必填，不带\*号为选填**

#### Request Body

| Name                                            | Type   | Description                                                                                                               |
| ----------------------------------------------- | ------ | ------------------------------------------------------------------------------------------------------------------------- |
| fromAddress<mark style="color:red;">\*</mark>   | String | 用户地址（创建买单的钱包地址）                                                                                                           |
| pledgeAddress<mark style="color:red;">\*</mark> | String | 能量接收地址                                                                                                                    |
| pledgeNum<mark style="color:red;">\*</mark>     | int    | 能量数量（需大于15000）                                                                                                            |
| tradeType<mark style="color:red;">\*</mark>     | String | fastTrade                                                                                                                 |
| sourceFlag<mark style="color:red;">\*</mark>    | String | 渠道来源（需要双方约定一个名称来代表三方的渠道）                                                                                                  |
| orderType<mark style="color:red;">\*</mark>     | String | ENERGY                                                                                                                    |
| pledgeDay<mark style="color:red;">\*</mark>     | String | <p>租用时长，单位（天）</p><p>支持0-30天</p><p>(<code>pledgeDay</code>, <code>pledgeHour</code> ，<code>pledgeMinute</code> 不能同时为0)</p> |
| pledgeHour<mark style="color:red;">\*</mark>    | String | <p>租用时长，单位（小时）</p><p>取值0、1、3</p>                                                                                          |
| pledgeMinute<mark style="color:red;">\*</mark>  | String | <p>租用时长，单位（分钟）</p><p>取值0、10</p>                                                                                           |
| extraTrxNum<mark style="color:red;">\*</mark>   | String | <p>用户想要额外接收到的trx数量<br>有效传值0或者\[0.8, 500]，0表示只需要能量，不需要获得trx</p>                                                            |
| pledgeBandwidthNum                              | String | <p>用户想要额外接收到的带宽数量<br>传0或者不传，表示不需要租赁带宽</p>                                                                                 |

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
    "resCode": 100,
    "resMsg": "Success",
    "data": {
        "orderId": "16zi4ynw_sdvn_qv8h_ujfc_crfsgyi07zat",
        "platformAddr": "TAdm9uEjiDge14T6AkZuo8vCNBEV1Fitmn",//转trx的目标地址
        "fromAddress": "TKghVbeEzvrV8GLK3YE1gRrjVHSf8rGB6k",//钱包地址
        "pledgeAddress": "TKghVbeEzvrV8GLK3YE1gRrjVHSf8rGB6k",//接收能量地址
        "pledgeDay": 3,
        "source": "tronLink",
        "orderType": "ENERGY",
        "orderPrice": 110,
        "pledgeNum": 500,
        "pledgeTrxNum": 0.165
    }
}
```

{% endtab %}
{% endtabs %}

### 调用示例

{% tabs %}
{% tab title="JavaScript" %}

```
// example
const params = {
    fromAddress: 'TKghVbeEzvrV8GLK3YE1gRrjVHSf8rGB6k',
    pledgeAddress: 'TKghVbeEzvrV8GLK3YE1gRrjVHSf8rGB6k',
    tradeType: 'fastTrade',
    pledgeDay: '0',
    pledgeHour: '0',
    pledgeMinute: '10',
    orderType: 'ENERGY',
    pledgeNum: 32000,
    sourceFlag: 'tronLink',
    extraTrxNum: '0.8',
    pledgeBandwidthNum: '0'
}
//调用创建能量买单接口
const res = await axios.post('https://open.tronify.io/api/tronRent/addTronRentRecord',params)
console.log(res)
if(res.resCode === '100'){
    const orderId = res.data.orderId;
    const transaction = res.data.transaction;
    //签名交易数据
    const signedTx = await tronWeb.trx.sign(transaction)
    const params = {
        "orderId": orderId,
        "fromHash": signedTx.txID,
        "signedData": signedTx
    };
    //使用签名后的数据调用上传买单哈希接口，完成交易
    const rest = await axios.post('https://open.tronify.io/api/tronRent/uploadHash', params );
    console.log(rest)
    if(rest.resCode === '100'){
        // ...
    }

}
```

{% endtab %}
{% endtabs %}

### Postman 示例

<figure><img src="https://437826888-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4K3XSHX743UkF46Owwyj%2Fuploads%2FJQZFOvte0NOhCqvDSnmV%2F2.jpg?alt=media&amp;token=4001a35c-dedf-4346-bc17-2b00981f02d8" alt=""><figcaption></figcaption></figure>

<figure><img src="https://437826888-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4K3XSHX743UkF46Owwyj%2Fuploads%2FxO59Qke6bg7PV8rpBKTv%2F%E6%88%AA%E5%B1%8F2023-12-04%2015.36.58.png?alt=media&amp;token=8facfc67-6a4f-4181-b6e2-bc00d68fd4c7" alt=""><figcaption></figcaption></figure>


# 创建带宽买单

创建购买带宽的买单

### 接口调用

<mark style="color:green;">`POST`</mark> `https://open.tronify.io/api/tronRent/addTronRentRecord`

**以下参数带\*字段为必填，不带\*号为选填**

#### Request Body

| Name                                            | Type   | Description                                                         |
| ----------------------------------------------- | ------ | ------------------------------------------------------------------- |
| fromAddress<mark style="color:red;">\*</mark>   | String | 用户地址（创建买单的钱包地址）                                                     |
| pledgeAddress<mark style="color:red;">\*</mark> | String | 带宽接收地址                                                              |
| pledgeNum<mark style="color:red;">\*</mark>     | String | 带宽数量                                                                |
| orderPrice                                      | String | <p>价格，默认900</p><p>支持700及以上数值</p>                                    |
| pledgeDay                                       |        | <p>租赁时长，单位（天）</p><p>支持1-30天</p><p>(pledgeDay, pledgeHour不能同时为空)</p> |
| sourceFlag<mark style="color:red;">\*</mark>    | String | 渠道来源（需要双方约定一个名称来代表三方的渠道）                                            |
| orderType<mark style="color:red;">\*</mark>     | String | BANDWIDTH                                                           |
| pledgeHour                                      | String | <p>租赁时长，单位（小时）</p><p>支持1, 3小时</p>                                   |

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
    "resCode": 100,
    "resMsg": "Success",
    "data": {
        "orderId": "16zi4ynw_sdvn_qv8h_ujfc_crfsgyi07zat",
        "platformAddr": "TAdm9uEjiDge14T6AkZuo8vCNBEV1Fitmn",//转trx的目标地址
        "fromAddress": "TKghVbeEzvrV8GLK3YE1gRrjVHSf8rGB6k",//钱包地址
        "pledgeAddress": "TKghVbeEzvrV8GLK3YE1gRrjVHSf8rGB6k",//接收能量地址
        "pledgeDay": 3,
        "source": "tronLink",
        "orderType": "BANDWIDTH",
        "orderPrice": 110,
        "pledgeNum": 3500,
        "pledgeTrxNum": 9.45
    }
}
```

{% endtab %}
{% endtabs %}

### 调用示例

{% tabs %}
{% tab title="JavaScript" %}

<pre><code>// example
const params = {
    fromAddress: 'TKghVbeEzvrV8GLK3YE1gRrjVHSf8rGB6k',
    pledgeAddress: 'TKghVbeEzvrV8GLK3YE1gRrjVHSf8rGB6k',
    pledgeDay: 3,
    orderType: 'BANDWIDTH',
    orderPrice: 900,
    pledgeNum: 3500,
    sourceFlag: 'tronLink'
}
//调用创建带宽买单接口
const res = await axios.post('https://open.tronify.io/api/tronRent/addTronRentRecord',params)
console.log(res)
    if(res.resCode === '100'){
<strong>    const orderId = res.data.orderId;
</strong>    const transaction = res.data.transaction;
    //签名交易数据
    const signedTx = await tronWeb.trx.sign(transaction)
    const params = {
        "orderId": orderId,
        "fromHash": signedTx.txID,
        "signedData": signedTx
    };
    //使用签名后的数据调用上传买单哈希接口，完成交易
    const rest = await axios.post('https://open.tronify.io/api/tronRent/uploadHash', params );
    console.log(rest)
    if(rest.resCode === '100'){
        // ...
    }
}
</code></pre>

{% endtab %}
{% endtabs %}

### Postman 示例

<figure><img src="https://437826888-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4K3XSHX743UkF46Owwyj%2Fuploads%2F25kNHwx5EqFtRmjNfGcD%2F%E6%88%AA%E5%B1%8F2023-12-04%2014.19.44.png?alt=media&amp;token=f415c1e2-367a-46e8-9d4c-3e1329269537" alt=""><figcaption></figcaption></figure>


# 上传买单哈希

上传购买能量/带宽的哈希

<mark style="color:green;">`POST`</mark> `https://open.tronify.io/api/tronRent/uploadHash`

**以下参数带\*字段为必填，不带\*号为选填**

#### Request Body

| Name                                         | Type   | Description                            |
| -------------------------------------------- | ------ | -------------------------------------- |
| orderId<mark style="color:red;">\*</mark>    | String | 买单Id                                   |
| fromHash<mark style="color:red;">\*</mark>   | String | 创建买单接口返回的txID                          |
| signedData<mark style="color:red;">\*</mark> | Object | 签名后的对象 (签名创建买单接口返回的transaction对象，不要广播) |

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
    "resCode": 100,
    "resMsg": "Success",
    "data":{}
}
```

{% endtab %}
{% endtabs %}

### 调用示例

{% tabs %}
{% tab title="JavaScript" %}

```
// example
const params = {
    "orderId":"vkimeodm_f643_a280_fqzi_e1cib90jcus5",
    "fromHash":"07ece7c7f99b3a2153358a34320cdf23884c1da01e2b1f3b32ed9a8305442cbd",
    "signedData":{
        "visible":false,
        "txID":"07ece7c7f99b3a2153358a34320cdf23884c1da01e2b1f3b32ed9a8305442cbd",
        "raw_data":{
            "contract":[
                {
                    "parameter":{
                        "value":{
                            "amount":3440090,
                            "owner_address":"4115373d5d96e00bf034a8d944e333f6fdb8fe45a5",
                            "to_address":"41c888b36e17958e39140051eb5d8cbc1b5c109d6d"
                        },
                        "type_url":"type.googleapis.com/protocol.TransferContract"
                    },
                    "type":"TransferContract"
                }
            ],
            "ref_block_bytes":"8b59",
            "ref_block_hash":"3bc4a70040989469",
            "expiration":1700805627000,
            "timestamp":1700805568358
        },
        "raw_data_hex":"0a028b5922083bc4a7004098946940f898a9ffbf315a68080112640a2d747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e5472616e73666572436f6e747261637412330a154115373d5d96e00bf034a8d944e333f6fdb8fe45a5121541c888b36e17958e39140051eb5d8cbc1b5c109d6d18dafbd10170e6cea5ffbf31",
        "signature":[
            "eaf2b3e4d06d41696776d5ca57d5cf0afb25ca7f6ac954b2bfb7c395558fe86d7a1c9be6bb8fecc1b1aebe1a59ea25fdd2b0453ed9f94218af1bb0d3bdcf92cb1C"
        ]
    }
}
 const res = await axios.post('https://open.tronify.io/api/tronRent/uploadHash',params)
 console.log(res)
 if(res.resCode === '100'){
    // ...
 }
```

{% endtab %}
{% endtabs %}

### Postman 示例

<figure><img src="https://437826888-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4K3XSHX743UkF46Owwyj%2Fuploads%2F1Z0Z3dfI8y9svnZPjMWH%2F%E6%9C%AA%E5%91%BD%E5%90%8D2.png?alt=media&amp;token=405ed464-3214-40c3-885c-1a7dd315b810" alt=""><figcaption></figcaption></figure>


# 创建出售订单

创建出售能量/带宽的订单

### 接口调用

<mark style="color:green;">`POST`</mark> `https://open.tronify.io/api/tronRent/addTronSale`

**以下参数带\*字段为必填，不带\*号为选填**

#### Request Body

| Name                                            | Type   | Description              |
| ----------------------------------------------- | ------ | ------------------------ |
| relateOrderId<mark style="color:red;">\*</mark> | String | 买单Id                     |
| saleAddress<mark style="color:red;">\*</mark>   | String | 用户地址（创建出售订单的钱包地址）        |
| sourceFlag<mark style="color:red;">\*</mark>    | String | 渠道来源（需要双方约定一个名称来代表三方的渠道） |
| buyPledgeNum<mark style="color:red;">\*</mark>  | String | 能量/带宽出售数量                |
| payTrxAddress<mark style="color:red;">\*</mark> | String | trx接收地址                  |

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
    "resCode": 100,
    "resMsg": "Success",
    "data": {
        "orderId": "82gaugby_r7oh_ki1y_f2ma_ltelk84hivte",
        "relateOrderId": "3j354cx4_a4to_hbck_3amx_zrc0zh51dfkg",
        "transaction": {
            "visible": false,
            "txID": "14fc0e21c3be5889bb413c2406b184df724ce0cefa239adf1e3ed8368e39d741",
            "raw_data": {
                "contract": [
                    {
                        "parameter": {
                            "value": {
                                "balance": 301000000,
                                "resource": "ENERGY",
                                "receiver_address": "41242e5341ccd7d16af9e3a3b1c5cb07794f596609",
                                "lock": true,
                                "owner_address": "41dcf5a07cfac1534c2410714d6ba6576f49c4a6d7"
                            },
                            "type_url": "type.googleapis.com/protocol.DelegateResourceContract"
                        },
                        "type": "DelegateResourceContract"
                    }
                ],
                "ref_block_bytes": "141a",
                "ref_block_hash": "b29ae11706ac4963",
                "expiration": 1682213709000,
                "timestamp": 1682213651693
            },
            "raw_data_hex": "0a02141a2208b29ae11706ac496340c8c980defa305a75083912710a35747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e44656c65676174655265736f75726365436f6e747261637412380a1541dcf5a07cfac1534c2410714d6ba6576f49c4a6d7100118c0cac38f01221541242e5341ccd7d16af9e3a3b1c5cb07794f596609280170ed89fdddfa30"
        }
    }
}
```

{% endtab %}

{% tab title="500: Internal Server Error " %}

```javascript
{
    // Response
}
```

{% endtab %}
{% endtabs %}

### 调用示例

{% tabs %}
{% tab title="JavaScript" %}

```
// example
const params = {
    relateOrderId: 'mt1wxcl1_dplo_r0qp_5bho_w5an5hev6d70',
    saleAddress: 'TKghVbeEzvrV8GLK3YE1gRrjVHSf8rGB6k',
    payTrxAddress: 'TKghVbeEzvrV8GLK3YE1gRrjVHSf8rGB6k',
    buyPledgeNum: 600,
    sourceFlag: 'tronLink'
}
 const res = await axios.post('https://open.tronify.io/api/tronRent/addTronSale',params)
 console.log(res)
 if(res.resCode === '100'){
    const signedTx = await tronWeb.trx.sign(res.data.transaction)
    const sellerOrderParams = {
        "orderId": res.data.orderId,
        "pledgeHash": signedTx.txID,
        "signedData": signedTx
    }
    const res = await axios.post('https://open.tronify.io/api/tronRent/uploadPledgeHash',sellerOrderParams )
 
 }
```

{% endtab %}
{% endtabs %}

### Postman 示例

<figure><img src="https://437826888-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4K3XSHX743UkF46Owwyj%2Fuploads%2F5PdC4FSemHSs2EUtEw2X%2F3.jpg?alt=media&amp;token=d0ea9169-0b33-4baa-92f0-6b3f508d51cd" alt=""><figcaption></figcaption></figure>


# 上传卖单哈希

创建出售能量/带宽的订单

### 接口调用

<mark style="color:green;">`POST`</mark> `https://open.tronify.io/api/tronRent/uploadPledgeHash`

**以下参数带\*字段为必填，不带\*号为选填**

#### Request Body

| Name                                         | Type   | Description                                |
| -------------------------------------------- | ------ | ------------------------------------------ |
| orderId<mark style="color:red;">\*</mark>    | String | 卖单Id（来自api/tronRent/addTronSale）           |
| pledgeHash<mark style="color:red;">\*</mark> | String | 代理哈希                                       |
| signedData<mark style="color:red;">\*</mark> | Object | 签名后的对象 (签名 创建出售订单 接口返回的transaction对象，不要广播) |

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
    "resCode": 100,
    "resMsg": "Success",
    "data": {}
}
```

{% endtab %}

{% tab title="500: Internal Server Error " %}

```javascript
{
    // Response
}
```

{% endtab %}
{% endtabs %}

### 调用示例

{% tabs %}
{% tab title="JavaScript" %}

```
// example
const params = {
    "orderId":"vkimeodm_f643_a280_fqzi_e1cib90jcus3",
    "pledgeHash":"14fc0e21c3be5889bb413c2406b184df724ce0cefa239adf1e3ed8368e39d741",
    "signedData":{
            "visible": false,
            "txID": "14fc0e21c3be5889bb413c2406b184df724ce0cefa239adf1e3ed8368e39d741",
            "raw_data": {
                "contract": [
                    {
                        "parameter": {
                            "value": {
                                "balance": 301000000,
                                "resource": "ENERGY",
                                "receiver_address": "41242e5341ccd7d16af9e3a3b1c5cb07794f596609",
                                "lock": true,
                                "owner_address": "41dcf5a07cfac1534c2410714d6ba6576f49c4a6d7"
                            },
                            "type_url": "type.googleapis.com/protocol.DelegateResourceContract"
                        },
                        "type": "DelegateResourceContract"
                    }
                ],
                "ref_block_bytes": "141a",
                "ref_block_hash": "b29ae11706ac4963",
                "expiration": 1682213709000,
                "timestamp": 1682213651693
            },
            "raw_data_hex": "0a02141a2208b29ae11706ac496340c8c980defa305a75083912710a35747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e44656c65676174655265736f75726365436f6e747261637412380a1541dcf5a07cfac1534c2410714d6ba6576f49c4a6d7100118c0cac38f01221541242e5341ccd7d16af9e3a3b1c5cb07794f596609280170ed89fdddfa30"
            "signature":[
                "eaf2b3e4d06d41696776d5ca57d5cf0afb25ca7f6ac954b2bfb7c395558fe86d7a1c9be6bb8fecc1b1aebe1a59ea25fdd2b0453ed9f94218af1bb0d3bdcf92cb1C"
            ]
    }
}
 const res = await axios.post('https://open.tronify.io/api/tronRent/uploadPledgeHash',params)
 console.log(res)
 if(res.resCode === '100'){
    // ...
 }
```

{% endtab %}
{% endtabs %}


# 质押获得能量

### 接口调用

<mark style="color:green;">`POST`</mark> `https://open.tronify.io/api/tronRent/createfreezeBalanceTransaction`

**以下参数带\*字段为必填，不带\*号为选填**

#### Request Body

| Name                                          | Type   | Description              |
| --------------------------------------------- | ------ | ------------------------ |
| saleAddress<mark style="color:red;">\*</mark> | String | 用户地址（创建质押交易的钱包地址）        |
| sourceFlag<mark style="color:red;">\*</mark>  | String | 渠道来源（需要双方约定一个名称来代表三方的渠道） |
| payTrxNum<mark style="color:red;">\*</mark>   | String | 质押trx数量                  |
| orderType<mark style="color:red;">\*</mark>   | String | 订单类型(ENERGY/BANDWIDTH)   |

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
    "resCode": 100,
    "resMsg": "Success",
    "data": {
        "visible": false,
        "txID": "05694544c56863032625dce3554e62220fd4b36d32172fd125d255123e4a0826",
        "raw_data": {
            "contract": [
                {
                    "parameter": {
                        "value": {
                            "resource": "ENERGY",
                            "frozen_balance": 400000000,
                            "owner_address": "41dcf5a07cfac1534c2410714d6ba6576f49c4a6d7"
                        },
                        "type_url": "type.googleapis.com/protocol.FreezeBalanceV2Contract"
                    },
                    "type": "FreezeBalanceV2Contract"
                }
            ],
            "ref_block_bytes": "717a",
            "ref_block_hash": "8fb56414b12b26fe",
            "expiration": 1682088777000,
            "timestamp": 1682088718991
        },
        "raw_data_hex": "0a02717a22088fb56414b12b26fe40a8aab7a2fa305a5b083612570a34747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e467265657a6542616c616e63655632436f6e7472616374121f0a1541dcf5a07cfac1534c2410714d6ba6576f49c4a6d7108088debe011801708fe5b3a2fa30"
    }
}
```

{% endtab %}

{% tab title="500: Internal Server Error " %}

```javascript
{
    // Response
}
```

{% endtab %}
{% endtabs %}

### 调用示例

{% tabs %}
{% tab title="JavaScript" %}

```
// example
const params = {
    saleAddress: 'TKghVbeEzvrV8GLK3YE1gRrjVHSf8rGB6k',
    orderType: 'ENERGY',
    payTrxNum: 111,
    sourceFlag: 'tronLink'
}
 const res = await axios.post('https://open.tronify.io/api/tronRent/createfreezeBalanceTransaction',params)
 console.log(res)
 if(res.resCode === '100'){
    const signedTx = await tronWeb.trx.sign(res.data)
    const broastTx = await tronWeb.trx.sendRawTransaction(signedTx)
    return broastTx.txid
 }
```

{% endtab %}
{% endtabs %}

### Postman 示例

<figure><img src="https://437826888-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4K3XSHX743UkF46Owwyj%2Fuploads%2Fj8szqFwmx20BfikWlwOw%2F4.jpg?alt=media&amp;token=5d6ec95e-4c19-4235-a201-3e787c098b6f" alt=""><figcaption></figcaption></figure>


# 回收能量

### 接口调用

<mark style="color:green;">`POST`</mark> `https://open.tronify.io/api/tronRent/undelegateresource`

**以下参数带\*字段为必填，不带\*号为选填**

相关参数从 查询地址质押记录 接口获取

#### Request Body

| Name                                            | Type   | Description              |
| ----------------------------------------------- | ------ | ------------------------ |
| saleAddress<mark style="color:red;">\*</mark>   | String | 用户地址（创建质押交易的钱包地址）        |
| sourceFlag<mark style="color:red;">\*</mark>    | String | 渠道来源（需要双方约定一个名称来代表三方的渠道） |
| orderType<mark style="color:red;">\*</mark>     | String | 订单类型(ENERGY/BANDWIDTH)   |
| pledgeAddress<mark style="color:red;">\*</mark> | String | 出售能量的目标地址                |
| payTrxNum<mark style="color:red;">\*</mark>     | String | 回收trx数量                  |

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
    "resCode": 100,
    "resMsg": "Success",
    "data": {
        "visible": false,
        "txID": "b20aeb61595643ce60f50b34d839a81ad426f6a93ddf2c4ea3a5b727d6ae75cb",
        "raw_data": {
            "contract": [
                {
                    "parameter": {
                        "value": {
                            "balance": 301000000,
                            "resource": "ENERGY",
                            "receiver_address": "416a91f86fc9b7e98b01a9d9141db61aed6f389b9e",
                            "owner_address": "41dcf5a07cfac1534c2410714d6ba6576f49c4a6d7"
                        },
                        "type_url": "type.googleapis.com/protocol.UnDelegateResourceContract"
                    },
                    "type": "UnDelegateResourceContract"
                }
            ],
            "ref_block_bytes": "698e",
            "ref_block_hash": "f8c19af47b0e65d3",
            "expiration": 1682476032000,
            "timestamp": 1682475972451
        },
        "raw_data_hex": "0a02698e2208f8c19af47b0e65d34080c08bdbfb305a75083a12710a37747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e556e44656c65676174655265736f75726365436f6e747261637412360a1541dcf5a07cfac1534c2410714d6ba6576f49c4a6d7100118c0cac38f012215416a91f86fc9b7e98b01a9d9141db61aed6f389b9e70e3ee87dbfb30"
    }
}
```

{% endtab %}

{% tab title="500: Internal Server Error " %}

```javascript
{
    // Response
}
```

{% endtab %}
{% endtabs %}

### 调用示例

{% tabs %}
{% tab title="JavaScript" %}

```
// example
const params = {
    saleAddress: 'TKghVbeEzvrV8GLK3YE1gRrjVHSf8rGB6k',
    pledgeAddress: 'TW7XuicuiQSHCcodUkyjMfdWxnWsbZmiSS',
    orderType: 'ENERGY',
    payTrxNum: 111,
    sourceFlag: 'tronLink'
}
 const res = await axios.post('https://open.tronify.io/api/tronRent/undelegateresource',params)
 console.log(res)
 if(res.resCode === '100'){
    const signedTx = await tronWeb.trx.sign(res.data)
    const broastTx = await tronWeb.trx.sendRawTransaction(signedTx)
    return broastTx.txid 
 }
```

{% endtab %}
{% endtabs %}

### Postman 示例

<figure><img src="https://437826888-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4K3XSHX743UkF46Owwyj%2Fuploads%2FwTdsCpMa8pRYiC3BOZ0B%2F5.jpg?alt=media&amp;token=e9752b05-dbe4-4a5c-bbc9-c51da7efe32c" alt=""><figcaption></figcaption></figure>


# 取消买单

### 接口调用

<mark style="color:green;">`POST`</mark> `https://open.tronify.io/api/tronRent/cancelOrder`

**以下参数带\*字段为必填，不带\*号为选填**

#### Request Body

| Name                                         | Type   | Description              |
| -------------------------------------------- | ------ | ------------------------ |
| orderId<mark style="color:red;">\*</mark>    | String | 买单id                     |
| sourceFlag<mark style="color:red;">\*</mark> | String | 渠道来源（需要双方约定一个名称来代表三方的渠道） |
| flag<mark style="color:red;">\*</mark>       | String | md5值                     |

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
    "resCode": 100,
    "resMsg": "Success",
    "data": {
        "flag": "098AB187330265CD4EC4126E1F0661C6",
        "orderId": "2ombu8zk_3jet_0mle_g7id_2mi3gnl6fk4y",
        "sourceFlag": "tronLink"
    }
}
```

{% endtab %}

{% tab title="500: Internal Server Error " %}

```javascript
{
    // Response
}
```

{% endtab %}
{% endtabs %}

### 调用示例

{% tabs %}
{% tab title="JavaScript" %}

```
// example
const params = {
    orderId: 'mt1wxcl1_dplo_r0qp_5bho_w5an5hev6d70',
    flag: 'the value after md5',
    sourceFlag: 'tronLink'
}
 const res = await axios.post('https://open.tronify.io/api/tronRent/cancelOrder',params)
 console.log(res)
 if(res.resCode === '100'){
   //...  
 }
```

{% endtab %}
{% endtabs %}

### Postman 示例

<figure><img src="https://437826888-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4K3XSHX743UkF46Owwyj%2Fuploads%2FwSyWgRGfX6jEzmHoZMfh%2F6.jpg?alt=media&amp;token=a2b4341e-a9e7-40df-883a-8ddbbac5e2cf" alt=""><figcaption></figcaption></figure>


# 查询买单

### &#x20;接口调用

<mark style="color:green;">`POST`</mark> `https://open.tronify.io/api/tronRent/trades`

**以下参数带\*字段为必填，不带\*号为选填**

#### Request Body

| Name                                         | Type    | Description                                |
| -------------------------------------------- | ------- | ------------------------------------------ |
| sort<mark style="color:red;">\*</mark>       | String  | 0：根据订单时间倒序 1：根据能量和带宽价格倒序 2：根据金额倒序 3：根据能量倒序 |
| sourceFlag<mark style="color:red;">\*</mark> | String  | 渠道来源（需要双方约定一个名称来代表三方的渠道）                   |
| page<mark style="color:red;">\*</mark>       | Integer | 页码                                         |
| pageSize<mark style="color:red;">\*</mark>   | Integer | 条数                                         |

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
    "resCode": 100,
    "resMsg": "Success",
    "data": {
        "data": [
            {
                "orderId": "2ombu8zk_3jet_0mle_g7id_2mi3gnl6fk4y",
                "fromAddress": "TW7XuicuiQSHCcodUkyjMfdWxnWsbZmiSS",
                "pledgeAddress": "TW7XuicuiQSHCcodUkyjMfdWxnWsbZmiSS",
                "pledgeNum": 555,
                "salePledgeNum": 0,
                "freezePledgeNum": 0,
                "canSaleTrxNum": 0.128205,
                "leftPledgeTrxNum": 30.67,
                "leftPledgeNum": 555,
                "orderPrice": "110",
                "orderType": "ENERGY",
                "pledgeDay": "3",
                "createTime": "2023-04-11 16:29:55",
                "lowSaleTrxNum": 0.11549999999999999,
                "lowTRXCanBuy": 27.63,
                "lowCanBuy": 500,
                "AnnualizedRate": 50
            }
        ],
        "pagination": {
            "page": 1,
            "pageSize": 10,
            "total": 1
        }
    }
}
```

{% endtab %}

{% tab title="500: Internal Server Error " %}

```javascript
{
    // Response
}
```

{% endtab %}
{% endtabs %}

### 调用示例

{% tabs %}
{% tab title="JavaScript" %}

```
// example
const params = {
    sort: '1',
    page: 1,
    pageSize: 10,
    sourceFlag: 'tronLink'
}
 const res = await axios.post('https://open.tronify.io/api/tronRent/trades',params)
 console.log(res)
 if(res.resCode === '100'){
   //...  
 }
```

{% endtab %}
{% endtabs %}

### Postman 示例

<figure><img src="https://437826888-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4K3XSHX743UkF46Owwyj%2Fuploads%2F3bRF7JROEjsuzsdlsL5o%2F7.jpg?alt=media&amp;token=b9fead14-cc65-4e28-b5c7-30d08ba1849c" alt=""><figcaption></figcaption></figure>


# 查询最近完成订单

查询用户历史交易记录

### &#x20;接口调用

<mark style="color:green;">`POST`</mark> `https://open.tronify.io/api/tronRent/lastTrades`

**以下参数带\*字段为必填，不带\*号为选填**

#### Request Body

| Name                                         | Type    | Description              |
| -------------------------------------------- | ------- | ------------------------ |
| sourceFlag<mark style="color:red;">\*</mark> | String  | 渠道来源（需要双方约定一个名称来代表三方的渠道） |
| page<mark style="color:red;">\*</mark>       | Integer | 页码                       |
| pageSize<mark style="color:red;">\*</mark>   | Integer | 条数                       |

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
    "resCode": 100,
    "resMsg": "Success",
    "data": [
        {
            "orderId": "c490cwg0_8ad1_d81n_h9mk_qyt3x50jj4er",
            "relateOrderId": "qzld7n3q_5jfd_sx2l_k611_sf14yriioaux",
            "orderType": "ENERGY",
            "orderPrice": "112",
            "pledgeNum": "500",
            "payTrxNum": "0.117599",
            "createTime": "2023-04-06 11:22:57",
            "pledgeHash": "99da5697d4f03e41e7db000729cdb7b2c34310bb0dd5f1ebae859aacbe715a17"
        },
        {
            "orderId": "0glfxyv5_auu1_5a3z_kg9q_xts9ss7bw077",
            "relateOrderId": "sp8nrdgt_1ivg_1p8y_v9np_591c5lxjj2h2",
            "orderType": "ENERGY",
            "orderPrice": "110",
            "pledgeNum": "1000",
            "payTrxNum": "0.230999",
            "createTime": "2023-04-06 11:10:51",
            "pledgeHash": "431c18ef4aeaac4f7d5a90bf4d1fc83518e74425815593205593de506451b0a6"
        }
    ]
}
```

{% endtab %}

{% tab title="500: Internal Server Error " %}

```javascript
{
    // Response
}
```

{% endtab %}
{% endtabs %}

### 调用示例

{% tabs %}
{% tab title="JavaScript" %}

```
// example
const params = {
    page: 1,
    pageSize: 10,
    sourceFlag: 'tronLink'
}
 const res = await axios.post('https://open.tronify.io/api/tronRent/lastTrades',params)
 console.log(res)
 if(res.resCode === '100'){
   //...  
 }
```

{% endtab %}
{% endtabs %}

### Postman 示例

<figure><img src="https://437826888-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4K3XSHX743UkF46Owwyj%2Fuploads%2FlGJN2zpe0a4HFYkEPEcZ%2F8.jpg?alt=media&amp;token=8eebf26b-23a6-491d-85fd-8c44e3084638" alt=""><figcaption></figcaption></figure>


# 查询地址买单记录

### &#x20;接口调用

<mark style="color:green;">`POST`</mark> `https://open.tronify.io/api/tronRent/mypayorder`

**以下参数带\*字段为必填，不带\*号为选填**

#### Request Body

| Name                                          | Type    | Description                                                                                |
| --------------------------------------------- | ------- | ------------------------------------------------------------------------------------------ |
| sourceFlag<mark style="color:red;">\*</mark>  | String  | 渠道来源（需要双方约定一个名称来代表三方的渠道）                                                                   |
| page<mark style="color:red;">\*</mark>        | Integer | 页码                                                                                         |
| pageSize<mark style="color:red;">\*</mark>    | Integer | 条数                                                                                         |
| orderType<mark style="color:red;">\*</mark>   | String  | <p>1：查询状态是wait\_deposit\_send，wait\_sale的进行中的买单 <br>0：查询状态是complete的买单 <br>其他值：查询所有的买单</p> |
| fromAddress<mark style="color:red;">\*</mark> | String  | 用户地址                                                                                       |

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
    "resCode": 100,
    "resMsg": "Success",
    "data": {
        "data": [
            {
                "orderId": "2ombu8zk_3jet_0mle_g7id_2mi3gnl6fk4y",
                "fromAddress": "TW7XuicuiQSHCcodUkyjMfdWxnWsbZmiSS",
                "pledgeAddress": "TW7XuicuiQSHCcodUkyjMfdWxnWsbZmiSS",
                "pledgeNum": 555,
                "salePledgeNum": 0,
                "freezePledgeNum": 0,
                "leftPledgeNum": 555,
                "orderPrice": "110",
                "orderType": "ENERGY",
                "pledgeDay": "3",
                "orderStatus": "wait_sale",
                "createTime": "2023-04-11 16:29:55"
            },
            {
                "orderId": "gzbh4w53_k0qb_9x7d_elwm_dw8aoas7olbt",
                "fromAddress": "TW7XuicuiQSHCcodUkyjMfdWxnWsbZmiSS",
                "pledgeAddress": "TW7XuicuiQSHCcodUkyjMfdWxnWsbZmiSS",
                "pledgeNum": 555,
                "salePledgeNum": 0,
                "freezePledgeNum": 0,
                "leftPledgeNum": 555,
                "orderPrice": "110",
                "orderType": "ENERGY",
                "pledgeDay": "3",
                "orderStatus": "timeout",
                "createTime": "2023-04-11 16:17:14"
            }
        ],
        "pagination": {
            "page": 1,
            "pageSize": 10,
            "total": 2
        }
    }
}
```

{% endtab %}

{% tab title="500: Internal Server Error " %}

```javascript
{
    // Response
}
```

{% endtab %}
{% endtabs %}

### 调用示例

{% tabs %}
{% tab title="JavaScript" %}

```
// example
const params = {
    fromAddress: 'TW7XuicuiQSHCcodUkyjMfdWxnWsbZmiSS',
    orderType: 0,
    page: 1,
    pageSize: 10,
    sourceFlag: 'tronLink'
}
 const res = await axios.post('https://open.tronify.io/api/tronRent/mypayorder',params)
 console.log(res)
 if(res.resCode === '100'){
   //...  
 }
```

{% endtab %}
{% endtabs %}

### Postman 示例

<figure><img src="https://437826888-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4K3XSHX743UkF46Owwyj%2Fuploads%2FteUeWJCtj80EVZbYBv7D%2F9.jpg?alt=media&amp;token=1db5de64-4042-4c95-b2bf-d19a9af64dc3" alt=""><figcaption></figcaption></figure>


# 查询地址出售记录

### &#x20;接口调用

<mark style="color:green;">`POST`</mark> `https://open.tronify.io/api/tronRent/myfreeze`

**以下参数带\*字段为必填，不带\*号为选填**

#### Request Body

| Name                                          | Type    | Description                                                                                                                                                                               |
| --------------------------------------------- | ------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| sourceFlag<mark style="color:red;">\*</mark>  | String  | 渠道来源（需要双方约定一个名称来代表三方的渠道）                                                                                                                                                                  |
| page<mark style="color:red;">\*</mark>        | Integer | 页码                                                                                                                                                                                        |
| pageSize<mark style="color:red;">\*</mark>    | Integer | 条数                                                                                                                                                                                        |
| orderType<mark style="color:red;">\*</mark>   | String  | <p>0: 查询已完成的卖单<br>1：查询状态是wait\_deposit\_send, wait\_receive\_send, error\_hacker, error, wait\_receive\_confirm, wait\_receive\_confirm\_error, wait\_unfreeze的出售订单 <br>其他值：查询所有的出售订单</p> |
| fromAddress<mark style="color:red;">\*</mark> | String  | 用户地址                                                                                                                                                                                      |

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
    "resCode": 100,
    "resMsg": "Success",
    "data": {
        "data": [
            {
                "orderId": "ud0xs8vw_pdc1_01ao_dvlp_fkv141z3dmnc",
                "relateOrderId": "mt1wxcl1_dplo_r0qp_5bho_w5an5hev6d70",
                "orderType": "ENERGY",
                "orderPrice": "110",
                "pledgeAddress": "TKghVbeEzvrV8GLK3YE1gRrjVHSf8rGB6k",
                "pledgeNum": "500",
                "orderStatus": "timeout",
                "pledgeTrxNum": "28",
                "expireTime": "2023-04-14 15:44:00",
                "createTime": "2023-04-11 15:44:00",
                "pledgeHash": ""
            },
            {
                "orderId": "kgd270ul_k486_kt7e_8yq2_nvgev6he6zdh",
                "relateOrderId": "mt1wxcl1_dplo_r0qp_5bho_w5an5hev6d70",
                "orderType": "ENERGY",
                "orderPrice": "110",
                "pledgeAddress": "TKghVbeEzvrV8GLK3YE1gRrjVHSf8rGB6k",
                "pledgeNum": "600",
                "orderStatus": "timeout",
                "pledgeTrxNum": "34",
                "expireTime": "2023-04-14 14:06:00",
                "createTime": "2023-04-11 14:06:00",
                "pledgeHash": "0a5eaefb965dedaf1817806fce0d6df1495a2364e714775ee1dc13953f694d18"
            },
            ...
        ],
        "pagination": {
            "page": 1,
            "pageSize": 10,
            "total": 7
        }
    }
}
```

{% endtab %}

{% tab title="500: Internal Server Error " %}

```javascript
{
    // Response
}
```

{% endtab %}
{% endtabs %}

### 调用示例

{% tabs %}
{% tab title="JavaScript" %}

```
// example
const params = {
    fromAddress: 'TW7XuicuiQSHCcodUkyjMfdWxnWsbZmiSS',
    orderType: 0,
    page: 1,
    pageSize: 10,
    sourceFlag: 'tronLink'
}
 const res = await axios.post('https://open.tronify.io/api/tronRent/myfreeze',params)
 console.log(res)
 if(res.resCode === '100'){
   //...  
 }
```

{% endtab %}
{% endtabs %}

### Postman 示例

<figure><img src="https://437826888-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4K3XSHX743UkF46Owwyj%2Fuploads%2FLs9fHcEQxqhZSWW4H4LM%2F10.jpg?alt=media&amp;token=c2ad87f4-2a90-4219-8c4d-e9f062faa149" alt=""><figcaption></figcaption></figure>


# 获取卖家出售相关配置信息

### 接口调用

<mark style="color:green;">`POST`</mark> `https://open.tronify.io/api/tronRent/sellerApproveInfo`

**以下参数带\*字段为必填，不带\*号为选填**

#### Headers

| Name                                      | Type   | Description          |
| ----------------------------------------- | ------ | -------------------- |
| api-key<mark style="color:red;">\*</mark> | String | 访问tronify.io买家管理平台获取 |

#### Request Body

| Name                                          | Type   | Description              |
| --------------------------------------------- | ------ | ------------------------ |
| fromAddress<mark style="color:red;">\*</mark> | String | 用户地址（钱包地址）               |
| sourceFlag<mark style="color:red;">\*</mark>  | String | 渠道来源（需要双方约定一个名称来代表三方的渠道） |

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
    "resCode": 100,
    "resMsg": "Success",
    "data": {
        "from_address": "TKghVbeEzvrV8GLK3YE1gRrjVHSf8rGB6k",
        "approve_address": "TGVEVDZZHJGZAHEPfou57u8F89i5nNNRxX",//授权地址
        "approve_id": 3, //授权id
        "approve_type": "1,2,3,4,5",
        "auto_sale": 1,
        "auto_vote": 1,
        "energy_price_customize": 1,//自定义出售能量最低价，默认0
        "energy_price_low": 60, //设置出售能量最低价，不设置默认60
        "bandwidth_price_customize": 0,
        "bandwidth_price_low": 0,
        "auto_withdraw": 1,
        "withdraw_left": 0,
        "auto_staking": 1,
        "stake_left": 0,
        "staking_trx": "178260 //质押trx数量
        "staking_available_trx": "5114.939104" //可租赁trx数量
    }
}
```

{% endtab %}
{% endtabs %}

### 调用示例

{% tabs %}
{% tab title="JavaScript" %}

```javascript
// example
const params = {
    fromAddress: 'TKghVbeEzvrV8GLK3YE1gRrjVHSf8rGB6k',
    sourceFlag: 'tronLink'
}
const headers = {
  'api-key': 'your-api-key'
};
const res = await axios.post('https://open.tronify.io/api/tronRent/sellerApproveInfo',params, { headers })
console.log(res)
if(res.resCode === '100'){
   //...  判断res.data是否为空，为空则未授权
}
```

{% endtab %}
{% endtabs %}

### Postman 示例

<figure><img src="https://437826888-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4K3XSHX743UkF46Owwyj%2Fuploads%2FCVQPOGCSBGJDeF98Mufu%2F11.jpg?alt=media&amp;token=6406ec19-201d-4dc8-9203-5c40f3391563" alt=""><figcaption></figcaption></figure>


# 卖家授权

授权tronify出售能量

### 接口调用

<mark style="color:green;">`POST`</mark> `https://open.tronify.io/api/tronRent/sellerAuthCheck`

**以下参数带\*字段为必填，不带\*号为选填**

#### Headers

| Name                                      | Type | Description          |
| ----------------------------------------- | ---- | -------------------- |
| api-key<mark style="color:red;">\*</mark> |      | 访问tronify.io买家管理平台获取 |

#### Request Body

| Name                                          | Type   | Description              |
| --------------------------------------------- | ------ | ------------------------ |
| fromAddress<mark style="color:red;">\*</mark> | String | 用户地址（钱包地址）               |
| sourceFlag<mark style="color:red;">\*</mark>  | String | 渠道来源（需要双方约定一个名称来代表三方的渠道） |

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
    "resCode": 100,
    "resMsg": "Success",
    "data": {
        "from_address": "TKghVbeEzvrV8GLK3YE1gRrjVHSf8rGB6k",
        "approve_address": "TGVEVDZZHJGZAHEPfou57u8F89i5nNNRxX",//授权地址
        "approve_id": 3, //授权id
        "approve_type": "1,2,3,4,5",
        "auto_sale": 1,
        "auto_vote": 1,
        "energy_price_customize": 1,//自定义出售能量最低价，默认0
        "energy_price_low": 60, //设置出售能量最低价，不设置默认60
        "bandwidth_price_customize": 0,
        "bandwidth_price_low": 0,
        "auto_withdraw": 1,
        "withdraw_left": 0,
        "auto_staking": 1,
        "stake_left": 0,
        "staking_trx": "178260 //质押trx数量
        "staking_available_trx": "5114.939104" //可租赁trx数量
    }
}
```

{% endtab %}
{% endtabs %}

### 调用示例

{% tabs %}
{% tab title="JavaScript" %}

```javascript
// example
const params = {
    fromAddress: 'TKghVbeEzvrV8GLK3YE1gRrjVHSf8rGB6k',
    sourceFlag: 'tronLink'
}
const headers = {
  'api-key': 'your-api-key'
};
const res = await axios.post('https://open.tronify.io/api/tronRent/sellerAuthCheck',params, { headers })
console.log(res)
if(res.resCode === '100'){
   //... 
}
```

{% endtab %}
{% endtabs %}

### Postman 示例

<figure><img src="https://437826888-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4K3XSHX743UkF46Owwyj%2Fuploads%2F1f8fjUU4FEhGye4km1Tz%2F12.jpg?alt=media&amp;token=b346d0a8-f2d0-4171-b993-462576032567" alt=""><figcaption></figcaption></figure>


# 更新卖家出售相关配置

更新配置信息

### 接口调用

<mark style="color:green;">`POST`</mark> `https://open.tronify.io/api/tronRent/updateApproveInfo`

**以下参数带\*字段为必填，不带\*号为选填**

#### Headers

| Name                                      | Type | Description          |
| ----------------------------------------- | ---- | -------------------- |
| api-key<mark style="color:red;">\*</mark> |      | 访问tronify.io买家管理平台获取 |

#### Request Body

| Name                                                       | Type   | Description                                     |
| ---------------------------------------------------------- | ------ | ----------------------------------------------- |
| fromAddress<mark style="color:red;">\*</mark>              | String | 用户地址（钱包地址）                                      |
| sourceFlag<mark style="color:red;">\*</mark>               | String | 渠道来源（需要双方约定一个名称来代表三方的渠道）                        |
| energy\_price\_customize<mark style="color:red;">\*</mark> | String | <p>自定义出售能量最低价（0：默认 </p><p>1：自定义)</p>            |
| energy\_min\_sun                                           | String | 设置出售能量最低价                                       |
| flag<mark style="color:red;">\*</mark>                     | String | "{api-key}SWFTstakeapprove{timeStamp}"的md5值(大写) |
| timeStamp<mark style="color:red;">\*</mark>                | String | 时间戳                                             |

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
    "resCode": 100,
    "resMsg": "Success",
    "data": {
        "from_address": "TKghVbeEzvrV8GLK3YE1gRrjVHSf8rGB6k",
        "approve_address": "TGVEVDZZHJGZAHEPfou57u8F89i5nNNRxX",//授权地址
        "approve_id": 3, //授权id
        "approve_type": "1,2,3,4,5",
        "auto_sale": 1,
        "auto_vote": 1,
        "energy_price_customize": 1,//自定义出售能量最低价，默认0
        "energy_price_low": 60, //设置出售能量最低价，不设置默认60
        "bandwidth_price_customize": 0,
        "bandwidth_price_low": 0,
        "auto_withdraw": 1,
        "withdraw_left": 0,
        "auto_staking": 1,
        "stake_left": 0,
        "staking_trx": "178260 //质押trx数量
        "staking_available_trx": "5114.939104" //可租赁trx数量
    }
}
```

{% endtab %}
{% endtabs %}

### 调用示例

{% tabs %}
{% tab title="JavaScript" %}

```javascript
// example
const params = {
    "fromAddress": "TKghVbeEzvrV8GLK3YE1gRrjVHSf8rGB6k",
    "sourceFlag": "path",
    "energy_price_customize": 1,
    "energy_min_sun": 57,
    "flag": "md5-xxxxx",
    "timeStamp": 1684941701
}
const headers = {
  'api-key': 'your-api-key'
};
const res = await axios.post('https://open.tronify.io/api/tronRent/updateApproveInfo',params, { headers })
console.log(res)
if(res.resCode === '100'){
   //...  
}
```

{% endtab %}
{% endtabs %}

### Postman 示例

<figure><img src="https://437826888-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4K3XSHX743UkF46Owwyj%2Fuploads%2FTAsu6f9RHyPhghjOYHhF%2F13.jpg?alt=media&amp;token=11abae41-a63a-4ea4-89a9-10f80255988e" alt=""><figcaption></figcaption></figure>


# 获取卖家面板

### 接口调用

<mark style="color:green;">`POST`</mark> `https://open.tronify.io/api/tronRent/sellerSellInfo`

**以下参数带\*字段为必填，不带\*号为选填**

#### Headers

| Name                                      | Type | Description          |
| ----------------------------------------- | ---- | -------------------- |
| api-key<mark style="color:red;">\*</mark> |      | 访问tronify.io买家管理平台获取 |

#### Request Body

| Name                                          | Type   | Description              |
| --------------------------------------------- | ------ | ------------------------ |
| fromAddress<mark style="color:red;">\*</mark> | String | 用户地址（钱包地址）               |
| sourceFlag<mark style="color:red;">\*</mark>  | String | 渠道来源（需要双方约定一个名称来代表三方的渠道） |

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
    "resCode": 100,
    "resMsg": "Success",
    "data": {
        "total_settled_amount":12318.87016499999,//累计收益
        "today_settled_amount":959.9134970000006,//今日已结算trx
        "today_settled_count":44,//今日已结算笔数
        "today_sale_energy":5877000,//今日已出售能量
        "today_pending_recover_energy":128000,//今日待回收能量
        "today_pending_recover_trx":7906,//今日待回收trx
        "today_pending_recover_bandwidth":0,//今日待回收带宽
        "yesterday_settled_amount":1937.5649959999998,//昨日已结算trx
        "yesterday_settled_count":37,//昨日已结算笔数
        "yesterday_sale_energy":8365000,//昨日已出售能量
        "today_pending_amount":144.58000000000004//待结算trx
    }
}
```

{% endtab %}
{% endtabs %}

### 调用示例

{% tabs %}
{% tab title="JavaScript" %}

```javascript
// example
const params = {
    fromAddress: 'TKghVbeEzvrV8GLK3YE1gRrjVHSf8rGB6k',
    sourceFlag: 'tronLink'
}
const headers = {
  'api-key': 'your-api-key'
};
const res = await axios.post('https://open.tronify.io/api/tronRent/sellerSellInfo',params, { headers })
console.log(res)
if(res.resCode === '100'){
   //...  
}
```

{% endtab %}
{% endtabs %}

### Postman 示例

<figure><img src="https://437826888-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4K3XSHX743UkF46Owwyj%2Fuploads%2Fiuz7kN2XrL3ZLWnxfn12%2F14.jpg?alt=media&amp;token=e37ecf6a-6c9d-4d67-99c9-a22255932f55" alt=""><figcaption></figcaption></figure>


# 获取买家信息

### 接口调用

<mark style="color:green;">`POST`</mark> `https://open.tronify.io/api/tronRent/user/info`

**以下参数带\*字段为必填，不带\*号为选填**

#### Headers

| Name                                      | Type   | Description          |
| ----------------------------------------- | ------ | -------------------- |
| api-key<mark style="color:red;">\*</mark> | String | 访问tronify.io买家管理平台获取 |

#### Request Body

| Name                                         | Type   | Description              |
| -------------------------------------------- | ------ | ------------------------ |
| address<mark style="color:red;">\*</mark>    | String | 用户地址（钱包地址）               |
| sourceFlag<mark style="color:red;">\*</mark> | String | 渠道来源（需要双方约定一个名称来代表三方的渠道） |

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
    "resCode": 100,
    "resMsg": "Success",
    "data": {
        "id": 15,
        "address": "TUFXua1qzfCsFpcZEGXaU7oGFURqQ7RQpy",
        "balance": "0", //充值trx数量
        "invitationCode": "",
        "tronAddress": "TBuPND7n66qNf3AbYNJA458duuV3ZyWtUk",
        "freezeBalance": null,
        "whiteState": 0,
        "giftBalance": "0", //充值奖励trx数量
        "apiKey": "your-api-key",
        "sourceFlag": "tronify",
        "totalBalance": "0", //总trx数量
        "contractAddress": "TXnafj5Xh4G7jqTwajvdvaAvKegMwCLTyL", // 平台存币地址
        "giftRatio": [ //单笔充值trx数量范围和对应充值trx数量的奖励比例
            [
                50,
                100,
                0.1
            ],
            [
                100,
                100000,
                0.2
            ]
        ]
    }
}
```

{% endtab %}
{% endtabs %}

### 调用示例

{% tabs %}
{% tab title="JavaScript" %}

```
// example
const params = {
    address: 'TKghVbeEzvrV8GLK3YE1gRrjVHSf8rGB6k',
    sourceFlag: 'tronLink'
}
const headers = {
  'api-key': 'your-api-key'
};
 const res = await axios.post('https://open.tronify.io/api/tronRent/user/info',params, { headers })
 console.log(res)
 if(res.resCode === '100'){
   //...  
 }
```

{% endtab %}
{% endtabs %}

### Postman 示例

<figure><img src="https://437826888-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4K3XSHX743UkF46Owwyj%2Fuploads%2FM8C0YBLapKa34QGItubc%2F15.jpg?alt=media&amp;token=e8dd8313-f0fd-4ee7-a5ba-7a69b892c49c" alt=""><figcaption></figcaption></figure>


# 买家充币

### 接口调用

<mark style="color:green;">`POST`</mark> `https://open.tronify.io/api/tronRent/user/recharge`

**以下参数带\*字段为必填，不带\*号为选填**

#### Headers

| Name                                      | Type   | Description          |
| ----------------------------------------- | ------ | -------------------- |
| api-key<mark style="color:red;">\*</mark> | String | 访问tronify.io买家管理平台获取 |

#### Request Body

| Name                                         | Type   | Description              |
| -------------------------------------------- | ------ | ------------------------ |
| address<mark style="color:red;">\*</mark>    | String | 用户地址（钱包地址）               |
| sourceFlag<mark style="color:red;">\*</mark> | String | 渠道来源（需要双方约定一个名称来代表三方的渠道） |
| balance<mark style="color:red;">\*</mark>    | String | 充值trx数量                  |

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
    "resCode": 100,
    "resMsg": "Success",
    "data": {
        "visible": false,
        "txID": "b4bb945886a562b2be5e01cff2bab4ec9d994fbc8879dcb3a06331c242d7e518",
        "raw_data": {
            "contract": [
                {
                    "parameter": {
                        "value": {
                            "amount": 2000000,
                            "owner_address": "41dcf5a07cfac1534c2410714d6ba6576f49c4a6d7",
                            "to_address": "418dfb584145620fbe46b7d557b1edff4c448a0752"
                        },
                        "type_url": "type.googleapis.com/protocol.TransferContract"
                    },
                    "type": "TransferContract"
                }
            ],
            "ref_block_bytes": "ca75",
            "ref_block_hash": "1abdca8db37bb677",
            "expiration": 1687276659000,
            "timestamp": 1687276601209
        },
        "raw_data_hex": "0a02ca7522081abdca8db37bb67740b8c29acc8d315a67080112630a2d747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e5472616e73666572436f6e747261637412320a1541dcf5a07cfac1534c2410714d6ba6576f49c4a6d71215418dfb584145620fbe46b7d557b1edff4c448a07521880897a70f9fe96cc8d31"
    }
}
```

{% endtab %}
{% endtabs %}

### 调用示例

{% tabs %}
{% tab title="JavaScript" %}

```
// example
const params = {
    address: 'TKghVbeEzvrV8GLK3YE1gRrjVHSf8rGB6k',
    balance: 100,
    sourceFlag: 'tronLink'
}
const headers = {
  'api-key': 'your-api-key'
};
 const res = await axios.post('https://open.tronify.io/api/tronRent/user/recharge',params, { headers })
 console.log(res)
 if(res.resCode === '100'){
    const signedTx = await tronWeb.trx.sign(res.data)
    const broastTx = await tronWeb.trx.sendRawTransaction(signedTx)
    return broastTx.txid 
 }
```

{% endtab %}
{% endtabs %}

### Postman 示例

<figure><img src="https://437826888-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4K3XSHX743UkF46Owwyj%2Fuploads%2FlGu1gwofUCWX0DYyKpYw%2F16.jpg?alt=media&amp;token=742a6f48-7fcc-4484-885c-69d06494118f" alt=""><figcaption></figcaption></figure>


# 买家提币

### 接口调用

<mark style="color:green;">`POST`</mark> `https://open.tronify.io/api/tronRent/user/withdraw/coins`

**以下参数带\*字段为必填，不带\*号为选填**

#### Headers

| Name                                      | Type   | Description          |
| ----------------------------------------- | ------ | -------------------- |
| api-key<mark style="color:red;">\*</mark> | String | 访问tronify.io买家管理平台获取 |

#### Request Body

| Name                                         | Type   | Description              |
| -------------------------------------------- | ------ | ------------------------ |
| address<mark style="color:red;">\*</mark>    | String | 用户地址（钱包地址）               |
| sourceFlag<mark style="color:red;">\*</mark> | String | 渠道来源（需要双方约定一个名称来代表三方的渠道） |
| balance<mark style="color:red;">\*</mark>    | String | 提取trx数量                  |

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
    "resCode": 100,
    "resMsg": "Success",
    "data": {}
}
```

{% endtab %}
{% endtabs %}

### 调用示例

{% tabs %}
{% tab title="JavaScript" %}

```
// example
const params = {
    address: 'TKghVbeEzvrV8GLK3YE1gRrjVHSf8rGB6k',
    balance: 100,
    sourceFlag: 'tronLink'
}
const headers = {
  'api-key': 'your-api-key'
};
 const res = await axios.post('https://open.tronify.io/api/tronRent/user/withdraw/coins',params, { headers })
 console.log(res)
 if(res.resCode === '100'){
   //...  
 }
```

{% endtab %}
{% endtabs %}

### Postman 示例

<figure><img src="https://437826888-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4K3XSHX743UkF46Owwyj%2Fuploads%2F2jQBTgfqVbqgdAW050bG%2F17.jpg?alt=media&amp;token=e927343e-f7bd-4436-abfb-91657e329dbe" alt=""><figcaption></figcaption></figure>


# 租赁能量

### 接口调用

<mark style="color:green;">`POST`</mark> `https://open.tronify.io/api/tronRent/addTronRentRecord`

#### Headers

| Name                                      | Type   | Description                                 |
| ----------------------------------------- | ------ | ------------------------------------------- |
| api-key<mark style="color:red;">\*</mark> | String | 访问tronify.io买家管理平台获取。tradeType是userTrade时必传 |

#### Request Body

| Name                                            | Type   | Description                    |
| ----------------------------------------------- | ------ | ------------------------------ |
| fromAddress<mark style="color:red;">\*</mark>   | String | 用户地址（创建买单的钱包地址）                |
| sourceFlag<mark style="color:red;">\*</mark>    | String | 渠道来源（需要双方约定一个名称来代表三方的渠道）       |
| pledgeNum<mark style="color:red;">\*</mark>     | String | 能量数量                           |
| orderType<mark style="color:red;">\*</mark>     | String | ENERGY                         |
| pledgeHour<mark style="color:red;">\*</mark>    | String | 目前支持0、1、3                      |
| pledgeDay<mark style="color:red;">\*</mark>     | String | 传值整数，如：0、1、2、3                 |
| tradeType<mark style="color:red;">\*</mark>     | String | userTrade                      |
| pledgeAddress<mark style="color:red;">\*</mark> | String | 能量/带宽接收地址。 可以传多个地址批量租赁，地址间用,分割 |
| pledgeMinute<mark style="color:red;">\*</mark>  | String | 目前支持0、10                       |

{% tabs %}
{% tab title="200: OK " %}

```
{
    "resCode": 100,
    "resMsg": "Success",
    "data": {
        "orderId": "16zi4ynw_sdvn_qv8h_ujfc_crfsgyi07zat",
        "fromAddress": "TKghVbeEzvrV8GLK3YE1gRrjVHSf8rGB6k",//钱包地址
        "pledgeAddress": "TKghVbeEzvrV8GLK3YE1gRrjVHSf8rGB6k",//接收能量地址
        "pledgeDay": 3,
        "source": "tronLink",
        "orderType": "ENERGY",
        "orderPrice": 110,
        "pledgeNum": 500,
        "pledgeTrxNum": 0.165
    }
}
```

{% endtab %}
{% endtabs %}

### 调用示例

{% tabs %}
{% tab title="JavaScript" %}

```
// example
const params = {
    fromAddress: 'TKghVbeEzvrV8GLK3YE1gRrjVHSf8rGB6k',
    pledgeAddress: 'TKghVbeEzvrV8GLK3YE1gRrjVHSf8rGB6k',
    pledgeDay: 3,
    pledgeHour: 0,
    pledgeMinute: 0,
    orderType: 'ENERGY',
    pledgeNum: 500,
    sourceFlag: 'tronLink',
    tradeType: 'userTrade'
}
const headers = {
  'api-key': 'your-api-key'
};
 const res = await axios.post('https://open.tronify.io/api/tronRent/addTronRentRecord',params, { headers })
 console.log(res)
 if(res.resCode === '100'){
   //...  
 }
```

{% endtab %}
{% endtabs %}

### Postman 示例

<figure><img src="https://437826888-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4K3XSHX743UkF46Owwyj%2Fuploads%2FJoqRCjvSTSXdk3Yeb2zn%2F18.jpg?alt=media&amp;token=75d7e414-e2f0-4423-a408-f5b40e079093" alt=""><figcaption></figcaption></figure>


# 租赁记录

### 接口调用

<mark style="color:green;">`POST`</mark> `https://open.tronify.io/api/tronRent/user/userAssetRecord`

**以下参数带\*字段为必填，不带\*号为选填**

#### Headers

| Name                                      | Type   | Description          |
| ----------------------------------------- | ------ | -------------------- |
| api-key<mark style="color:red;">\*</mark> | String | 访问tronify.io买家管理平台获取 |

#### Request Body

| Name                                         | Type   | Description                      |
| -------------------------------------------- | ------ | -------------------------------- |
| address<mark style="color:red;">\*</mark>    | String | 用户地址（钱包地址）                       |
| sourceFlag<mark style="color:red;">\*</mark> | String | 渠道来源（需要双方约定一个名称来代表三方的渠道）         |
| pledgeAddress                                | String | 根据租赁地址查询                         |
| orderId                                      | String | 根据订单号查询                          |
| orderType<mark style="color:red;">\*</mark>  | String | <p>0 完成；<br>1 进行中；<br>其它值：全部</p> |
| type<mark style="color:red;">\*</mark>       | String | 固定值：user                         |
| pageSize<mark style="color:red;">\*</mark>   | String | 条数                               |
| page<mark style="color:red;">\*</mark>       | String | 页码                               |
| endTime                                      | String | 根据结束时间查询 (YYYY-MM-DD HH:mm:ss)   |
| startTime                                    | String | 根据开始时间查询 (YYYY-MM-DD HH:mm:ss)   |

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
    "resCode": 100,
    "resMsg": "Success",
    "data": {
        "data": [
            {
                "orderId": "kuawcag6_hg5w_jsbe_tg1w_bcrzjl42glb1",
                "fromAddress": "TW7XuicuiQSHCcodUkyjMfdWxnWsbZmiSS",
                "pledgeAddress": "TBuPND7n66qNf3AbYNJA458duuV3ZyWtUk",
                "platformAddress": "",
                "pledgeNum": 32000,
                "trxNum": "3.68",
                "orderPrice": "115",
                "freeAmt": null,
                "orderType": "ENERGY",
                "pledgeDay": "0",
                "pledgeHour": "1",
                "orderStatus": "complete",
                "createTime": "2023-06-20 15:02:49",
                "pledgeTime": "2023-06-20 15:04:01",
                "finishTime": "2023-06-20 16:04:01"
            }
        ],
        "pagination": {
            "page": 1,
            "pageSize": 10,
            "total": 4
        }
    }
}
```

{% endtab %}
{% endtabs %}

### 调用示例

{% tabs %}
{% tab title="JavaScript" %}

```
// example
const params = {
    address: "TW7XuicuiQSHCcodUkyjMfdWxnWsbZmiSS",
    page: 1,
    pageSize: 10,
    code: "g7WNPfO1156",
    type: "user",
    orderType: "2",
    orderId: "",
    pledgeAddress: "",
    startTime: "2023-06-21",
    endTime: "2023-06-22",
    sourceFlag: "path"
}
const headers = {
  'api-key': 'your-api-key'
};
 const res = await axios.post('https://open.tronify.io/api/tronRent/user/userAssetRecord',params, { headers })
 console.log(res)
 if(res.resCode === '100'){
   //...  
 }
```

{% endtab %}
{% endtabs %}

### Postman 示例

<figure><img src="https://437826888-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4K3XSHX743UkF46Owwyj%2Fuploads%2FgoPivBb5qmDq8xJZBmSw%2F19.jpg?alt=media&amp;token=e1a1809e-9557-4309-bda1-c20a46bdb4c7" alt=""><figcaption></figcaption></figure>


# 买家trx变化记录

### 接口调用

<mark style="color:green;">`POST`</mark> `https://open.tronify.io/api/tronRent/user/get/fundflow`

**以下参数带\*字段为必填，不带\*号为选填**

#### Headers

| Name                                      | Type   | Description          |
| ----------------------------------------- | ------ | -------------------- |
| api-key<mark style="color:red;">\*</mark> | String | 访问tronify.io买家管理平台获取 |

#### Request Body

| Name                                         | Type   | Description                                        |
| -------------------------------------------- | ------ | -------------------------------------------------- |
| address<mark style="color:red;">\*</mark>    | String | 用户地址（钱包地址）                                         |
| sourceFlag<mark style="color:red;">\*</mark> | String | 渠道来源（需要双方约定一个名称来代表三方的渠道）                           |
| pageSize<mark style="color:red;">\*</mark>   | String | 条数                                                 |
| pageNum<mark style="color:red;">\*</mark>    | String | 页码                                                 |
| types                                        | String | <p>数组，传\[]查所有类型<br>'0'充值；<br>'1'提币；<br>'2'出售能量</p> |

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
    "resCode": 100,
    "resMsg": "Success",
    "data": {
        "total": 9,
        "list": [
            {
                "id": 100,
                "platformAddr": "TNuwNr2rxaptoCrkEc1tEL7ihTsB9fost1",
                "tronAddress": "TW7XuicuiQSHCcodUkyjMfdWxnWsbZmiSS",
                "balance": "20",
                "type": "1",
                "status": "complete",
                "createTime": "2023-06-21 00:02:41",
                "updateTime": "2023-06-20T16:03:51.000Z",
                "orderId": "qrfoum6b_e15i_c71f_mr1p_rda2f1df0i2k",
                "fromHash": "e1af0c1cfcbcd8156dc44f0d7b4efb2aa3184886933cd8a80b1297182be8e824"
            },
            {
                "id": 99,
                "platformAddr": "TNuwNr2rxaptoCrkEc1tEL7ihTsB9fost1",
                "tronAddress": "TW7XuicuiQSHCcodUkyjMfdWxnWsbZmiSS",
                "balance": "20",
                "type": "0",
                "status": "complete",
                "createTime": "2023-06-21 00:02:16",
                "updateTime": "2023-06-20T16:02:16.000Z",
                "orderId": "l8bmicd1_qljt_5w91_lr9x_7a8k85ojd5f8",
                "fromHash": "73c9815e1cb7a25f0a5c66fe0c0847b1ce55b287ad46c297e6479f4ef3d09367"
            },
            {
                "id": 92,
                "platformAddr": "TNuwNr2rxaptoCrkEc1tEL7ihTsB9fost1",
                "tronAddress": "TW7XuicuiQSHCcodUkyjMfdWxnWsbZmiSS",
                "balance": "3.68",
                "type": "2",
                "status": "complete",
                "createTime": "2023-06-20 15:07:42",
                "updateTime": "2023-06-20T07:08:56.000Z",
                "orderId": "mxxxeymv_1lkl_9b3e_kehf_tnwiazfzmluo",
                "fromHash": ""
            }
        ]
    }
}
```

{% endtab %}
{% endtabs %}

### 调用示例

{% tabs %}
{% tab title="JavaScript" %}

```
// example
const params = {
    types: [],
    startTime: "",
    endTime: "",
    pageNum: 1,
    pageSize: 10,
    address: "TW7XuicuiQSHCcodUkyjMfdWxnWsbZmiSS",
    sourceFlag: "path"
}
const headers = {
  'api-key': 'your-api-key'
};
 const res = await axios.post('https://open.tronify.io/api/tronRent/user/get/fundflow',params, { headers })
 console.log(res)
 if(res.resCode === '100'){
   //...  
 }
```

{% endtab %}
{% endtabs %}

### Postman 示例

<figure><img src="https://437826888-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4K3XSHX743UkF46Owwyj%2Fuploads%2FwgFCUMUnntNAZ4xvceuM%2F20.jpg?alt=media&amp;token=71cdd958-0046-40b7-9423-9c9a79839411" alt=""><figcaption></figcaption></figure>


# Tronify 常见问题解答 (FAQ)

**Q1：为什么我要租能量和带宽？自己买 TRX 抵扣不行吗？**

**答：** 在 TRON 网络转账 USDT，通常需要直接烧掉几个到十几个 TRX 作为手续费，成本极高（相当于 2 USDT 以上）。但通过 Tronify 提前租用“能量（Energy）”和“带宽（Bandwidth）”，单笔交易成本可以降低很多！租赁是高频转账用户、出粮团队和自动化机器人的首选省钱利器。

\
**Q2：从下单到能量到账，需要等多长时间？**

**答：** 极速秒到！在您成功付款或者系统自动完成交易 Hash 签名上传后，Tronify 会在后台立刻为您广播上链派发。通常在 **3 \~ 10 秒钟内**，能量和带宽就会直接落入您的接收钱包里，真正做到即需即用。

\
**Q3：能用什么币种来支付租金？**

**答：** 目前全面支持使用 **TRX** 和 **USDT** 这两种代币进行租金支付。您可以根据哪种币手头更宽裕来灵活选择付款方式。

\
**Q4：为什么我选择用 USDT 付款时，非要求我自己的钱包地址一致？**

**答：** 这是一个为了您资金安全的风控防呆设计。如果您使用 USDT 支付（不论是买能量还是附加功能），Tronify 平台强制要求 **“付款的地址”与“接收能量的地址”必须完全是同一个** 。这能有效阻断他人恶意利用代付漏洞进行欺诈，保护双边资产。

\
**Q5：我是一个纯纯的零转账新钱包（没有 TRX 激活），能租能量吗？可以顺带买点 TRX 吗？**

**答：** 完全可以！我们支持贴心的 **“附带 TRX（Attach TRX）”** 功能。

只要您使用 **USDT** 来支付租金，就可以在订单中选择额外附带几个 TRX（比如 2个、5个）。这样系统不仅给您下发能量，还会顺带给您发 TRX。这非常适合用来帮“连激活费都付不起”的干瘪新钱包快速补血。

*（⚠️ 请注意：如果选择 TRX 支付租金，则不支持附带 TRX 的混合功能哦）*

\
**Q6：我能把“能量”和“带宽”放在一个订单里同时买吗？**

**答：** 可以的！不管是使用 TRX 还是 USDT 支付，Tronify 平台均支持“资源混搭”。您可以在一笔订单内同时申请 X 万能量加上 Y 千带宽，系统会一次性核算并在几秒钟内同时发放到账。

\
**Q7：租赁的资源有效期是多久？**

**答：**&#x672C;产品支持按需选择有效期（如：10分钟、1小时、3小时或更久）。请注意，资源在有效期结束后会自动回收，建议在有效期内完成您的转账操作。

\
**Q8：为什么我租赁了能量，转账时还是扣了 TRX？**

**答：**&#x53EF;能存在以下原因：

**能量不足：** 对方账户如果是新账户（未持有 USDT），转账消耗的能量会翻倍。请确保租赁的额度覆盖该笔交易所需的最大值。

**带宽不足：** 转账同样需要消耗带宽（通常约 345 Bandwidth），如果您的账户带宽为 0，系统会扣除少量 TRX。

**到账延迟：** 请确认资源已实际到达您的账户后再发起交易。

\
**Q9：什么是“USDT 快速转账”功能？**

**答：**&#x8FD9;是专为“**零 TRX、零能量**”账户设计的转账方案。即使用户钱包里没有任何 TRX 或能量，也可以直接发起 USDT 转账。系统会自动完成资源购买，您只需额外支付一小笔 USDT，无需您手动去充值 TRX。

\
**卖家管理平台：**

**Q1：我将 TRX 授权给平台后，资产安全有保障吗？**

**答：**&#x5E73;台仅通过多重签名（Multisig）调用您的“资源代理（Delegate）”权限，**无权动用、转移或提现**您的本金。您的 TRX 始终留在您的钱包地址中，您可以随时在链上撤销授权。

\
**Q2：收益是如何计算的？**

**答：**&#x6536;益 = 总租赁金额 - 平台服务费。通常根据您每日实际被租用出去的“能量”进行分红，未被租用的部分不产生收益。

\
**买家管理平台：**

**Q1：如何查看我当前账户的能量余额和到期时间？**

**答：**&#x767B;录买家后台后，在“首页”中可实时查看当前地址的可用余额，可用能量、已用能量等；在“租赁记录”中可查看各笔租赁订单的到期时间。

\
**Q2：租赁订单可以提前取消并退款吗？**

**答：**&#x7531;于能量在链上一旦发放即被锁定在您的地址中，且消耗了卖家的质押额度，因此订单生效后不支持提前取消或退款。请在下单前确认您的使用量和有效期。


# 错误码

<table><thead><tr><th width="122" align="center">错误码</th><th>简述</th></tr></thead><tbody><tr><td align="center">100</td><td>成功</td></tr><tr><td align="center">101</td><td>所需参数为空</td></tr><tr><td align="center">102</td><td>地址无效</td></tr><tr><td align="center">103</td><td>您已达到今日领取限制</td></tr><tr><td align="center">105</td><td>订单不存在</td></tr><tr><td align="center">106</td><td>本月免费额度已用完</td></tr><tr><td align="center">107</td><td>超出交换范围</td></tr><tr><td align="center">108</td><td>您需要在TokenPocket钱包中使用此功能</td></tr><tr><td align="center">109</td><td>今日领取额度已用完</td></tr><tr><td align="center">110</td><td>24小时内已领取过了</td></tr><tr><td align="center">111</td><td>未找到委托权限</td></tr><tr><td align="center">112</td><td>要成为能源供应商，能源抵押的TRX金额必须超过一定数量</td></tr><tr><td align="center">113</td><td>超过了最高允许的价格设置</td></tr><tr><td align="center">114</td><td>参数错误</td></tr><tr><td align="center">115</td><td>超时</td></tr><tr><td align="center">116</td><td>当前用户存在取款操作，请稍后再试!</td></tr><tr><td align="center">117</td><td>订单存在异常，请联系客服人员帮助解决。</td></tr><tr><td align="center">118</td><td>该用户已存在</td></tr><tr><td align="center">119</td><td>该账户已存在。请前往 tronify.io 上的买家管理平台绑定您的 TG ID</td></tr><tr><td align="center">120</td><td>无效的签名</td></tr><tr><td align="center">121</td><td>地址未激活，请替换</td></tr><tr><td align="center">122</td><td>该地址是合约地址，请替换</td></tr><tr><td align="center">123</td><td>地址数量超过1000个</td></tr><tr><td align="center">124</td><td>账户余额不足</td></tr><tr><td align="center">125</td><td>剩余数量不足</td></tr><tr><td align="center">126</td><td>剩余能量必须大于最小能量</td></tr><tr><td align="center">127</td><td>USDT购买能量正在维护中</td></tr><tr><td align="center">128</td><td>目前能量不足，请稍后重试</td></tr><tr><td align="center">132</td><td>pledgeNum 不能小于 15000</td></tr><tr><td align="center">141</td><td>TRX余额不足</td></tr><tr><td align="center">142</td><td>USDT余额不足</td></tr><tr><td align="center">501</td><td>未授权</td></tr><tr><td align="center">502</td><td>访问限制</td></tr><tr><td align="center">505</td><td>汇率异常，请重试。</td></tr><tr><td align="center">506</td><td>地址存在风险，tronify 不提供服务。</td></tr><tr><td align="center">777</td><td>操作频繁，请稍后重试</td></tr><tr><td align="center">999</td><td>内部错误</td></tr></tbody></table>


