Gas Station
- Introduction
- Integration Guide
- API Interface
- Transaction Callback Notification
- Error Code
Tron Resource
Get Price
Get Price
GET
/
api
/
mpc
/
tron
/
gas
/
order
/
price
Copy
curl -X GET \
'https://openapi.gasstation.ai/api/mpc/tron/gas/order/price?app_id=49e9c57da66788e5178c8fec2905067b&data=lgy/X0LwFTE/03yBGP0PIGgzZMY+KFzlOFAo0SZkChygmN8RnV+y1tTEbjTAR2SD04xSX+r9FKWqIaATxev6yQ=='
Copy
{
"code": 0,
"msg": "Success",
"data": {
"resource_type": "energy",
"min_number": 32000,
"max_number": 5000000,
"price_builder_list": [
{
"expire_min": "10",
"service_charge_type": "10010",
"price": "38.00000001",
"remaining_number": "600000"
}
]
}
}
Request Parameters
resource type,default “energy”
Resource purchase cycle: 10010 - 10 minutes, 20001 - 1 hour, 30001 - 1 day
Response Parameters
Show object
Show object
Copy
curl -X GET \
'https://openapi.gasstation.ai/api/mpc/tron/gas/order/price?app_id=49e9c57da66788e5178c8fec2905067b&data=lgy/X0LwFTE/03yBGP0PIGgzZMY+KFzlOFAo0SZkChygmN8RnV+y1tTEbjTAR2SD04xSX+r9FKWqIaATxev6yQ=='
Copy
{
"code": 0,
"msg": "Success",
"data": {
"resource_type": "energy",
"min_number": 32000,
"max_number": 5000000,
"price_builder_list": [
{
"expire_min": "10",
"service_charge_type": "10010",
"price": "38.00000001",
"remaining_number": "600000"
}
]
}
}
Copy
curl -X GET \
'https://openapi.gasstation.ai/api/mpc/tron/gas/order/price?app_id=49e9c57da66788e5178c8fec2905067b&data=lgy/X0LwFTE/03yBGP0PIGgzZMY+KFzlOFAo0SZkChygmN8RnV+y1tTEbjTAR2SD04xSX+r9FKWqIaATxev6yQ=='
Copy
{
"code": 0,
"msg": "Success",
"data": {
"resource_type": "energy",
"min_number": 32000,
"max_number": 5000000,
"price_builder_list": [
{
"expire_min": "10",
"service_charge_type": "10010",
"price": "38.00000001",
"remaining_number": "600000"
}
]
}
}
Assistant
Responses are generated using AI and may contain mistakes.