# 上传买单哈希

<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="/files/PpaBsRUAw7UYtngz2zfK" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs-tron.tronify.io/tron-api/upload-purchase-order-hash.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
