Skip to content

Preview what one firing costs

GET
/api/v1/automations/preview
curl --request GET \
--url 'https://trongas.ai/api/v1/automations/preview?volume=1' \
--header 'X-Api-Key: <X-Api-Key>'

What a single firing of a rule would cost at your price, in TRX. type is refill (default) or smart. Read-only — charges nothing and creates nothing.

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

Amount of the resource: energy units or bandwidth bytes. Limits: see GET /orders/options (orders) or GET /automations/options (automations).

duration
string

Rental period, e.g. 15m, 1h, 1d. Allowed values per resource: see GET /orders/options.

type
string

Automation kind: refill (default) or smart.

OK

object
priceTrx
required
string
baseCostTrx
required
string
commissionTrx
required
string