Skip to content

Preview an order's cost

GET
/api/v1/orders/preview
curl --request GET \
--url https://trongas.ai/api/v1/orders/preview \
--header 'X-Api-Key: <X-Api-Key>'

Price an order before placing it: resource price, the address-activation fee if target is not activated yet, the estimated saving versus burning TRX (energy only), and your current TRX balance. Read-only — charges nothing. resource is energy (default) or bandwidth.

volume
integer | string format: int64
/^-?(?:0|[1-9]\d*)$/
days
string
resource
string
target
string

OK

object
priceTrx
required
string
activationTrx
required
string
burnCostTrx
required
string
savingsPercent
required
string
balanceTrx
required
string