Estimate of TRX
Estimate of TRX
POST
https://api.tronsave.io/v0/estimate-trx
Request params
amount
body
number
true
The number of resources
buy_energy_type
body
string, number
true
"FAST", "MEDIUM", "SLOW" or number
duration_millisec
body
number
true
The duration of the bought resource, time unit is equal to millisecond.
request_address
body
string
false
The address of requester.
target_address
body
string
false
The address of receiver resource.
is_partial
body
boolean
false
Allow the order to be filled partially or not.
Request params example
Responses
unit_price
number
true
price in SUN of energy that fit with your buy_energy_type
duration_millisec
number
true
available_energy
number
true
total amount available ernery on Tronsave market that match with unit_price
estimate_trx
number
true
estimate total trx value will pay for buy all available_energy
with price is unit_price
in duration_millisec
Last updated