Estimate TRX
Get an estimate of TRX
POST
https://api.tronsave.io/v2/estimate-buy-resource
POST
https://api.tronsave.io/v2/estimate-buy-resource
Rate limit: 15 requests per 1 second
Request params
resourceAmount*
Number
The number of resources.
unitPrice
String, Number
"FAST", "MEDIUM", "SLOW", or number:
-"FAST": If the market is ready to fill = 100%, FAST = MEDIUM. If the market is ready to fill < 100%, FAST = MEDIUM + 10. If market ready to fill = 0%, FAST = SLOW + 20.
-"MEDIUM": The lowest price for the maximum market fill for this order. If market is ready to fill = 0%, MEDIUM = SLOW + 10.
-"SLOW": The lowest price that can be set for this order.
-If the price is a number, the price unit is equal to SUN
durationSec
Number
The duration of the bought resource, time unit, is in seconds. Default 3d
requester
String
The address of requester.
receiver
String
The address of receiver resource.
resourceType
String
"ENERGY" or "BANDWIDTH", default: "ENERGY"
options
Object{}
options: { allowPartialFill, minResourceDelegateRequiredAmount}
allowPartialFill
Boolean
Allow the order to be filled partially or not
minResourceDelegateRequiredAmount
Number
The minimum energy amount delegated by a single provider.
Request params example
Responses
Last updated