POST
/
api
/
mpc
/
tron
/
gas
/
create_order
 curl -X POST \
'https://openapi.gasstation.ai/api/mpc/tron/gas/create_order?app_id=49e9c57da66788e5178c8fec2905067b&data=+7d8kre2+XHyvSY9ueXT8DuoFsgeij0K7zdCS3rJkq7icyRh+frctiUaOROBU6kAoN4OJ+MPX174QAMLOSZ8f2UluhXcLA8HQdUfc0azP6O65XcfZrufshkHmeleQwz0xlbY4/GuegUaZqeDMu4Yja6a4eqL526f/RpZc12czAaiiozHgLs94qG7mQcgMVaW'
{
    "code": 0,
    "msg": "Success",
    "data": {
        "trade_no": "1234"
    }
}

Request Parameters

request_id
string
required

request id

receive_address
string
required

receive address

buy_type
integer

0: Specified quantity 1: System estimation , default is 0 if not specified.

service_charge_type
string
required

rent time code: Request the order/price interface to return the cost codes for minutes, hours, days, and different times.

eg:10010 - 10 minutes, 20001 - 1 hour, 30001 - 1 day

energy_num
integer

energy num : min value is 64000

If buy_type=0, please enter the specific amount of energy

address_to
string

The transfer address for estimating miner fees.

Required when selecting buy_type=1.

contract_address
string

Contract address for estimating miner fees.

Required when selecting buy_type=1.

Response Parameters

 curl -X POST \
'https://openapi.gasstation.ai/api/mpc/tron/gas/create_order?app_id=49e9c57da66788e5178c8fec2905067b&data=+7d8kre2+XHyvSY9ueXT8DuoFsgeij0K7zdCS3rJkq7icyRh+frctiUaOROBU6kAoN4OJ+MPX174QAMLOSZ8f2UluhXcLA8HQdUfc0azP6O65XcfZrufshkHmeleQwz0xlbY4/GuegUaZqeDMu4Yja6a4eqL526f/RpZc12czAaiiozHgLs94qG7mQcgMVaW'
{
    "code": 0,
    "msg": "Success",
    "data": {
        "trade_no": "1234"
    }
}