Tron API En
Chinese API
  • Basic information
  • Tron API
    • Get related configuration
    • Pre-order
    • create trx engerg order
    • create usdt engerg order
    • create bandwidth order
    • upload purchase order hash
    • create a sell order
    • Earn energy by stake
    • recovered energy
    • cancel order
    • query purchase order
    • query recent finished order
    • query purchase order records by user address
    • query sell order records by user address
  • Seller Tron API
    • Get seller configuration
    • Seller authorization
    • Update seller configuration
    • Get seller panel
  • Buyer Tron API
    • Get buyer configuration
    • Buyer charge
    • Buyer withdraw
    • Buyer leas energy
    • Buyer leas energy records
    • Buyer asset records
  • FAQ
    • Error Code
Powered by GitBook
On this page
  • Endpoint usage
  • code example
  • Postman example
  1. Tron API

upload purchase order hash

upload energy/bandwidth order hash

Endpoint usage

POST https://open.tronify.io/api/tronRent/uploadHash

The fields with * are required, and the fields without * are optional

Request Body

Name
Type
Description

orderId*

String

orderId from api/tronRent/addTronRentRecord

fromHash*

String

txID from api/tronRent/addTronRentRecord

signedData*

Object

Signature data from the 'transaction' field ofapi/tronRent/addTronRentRecord

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

code example

// 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'){
    // ...
 }

Postman example

Previouscreate bandwidth orderNextcreate a sell order

Last updated 11 months ago