Skip to content

Enable smart mode (energy)

POST
/api/v1/automations/smart
curl --request POST \
--url https://trongas.ai/api/v1/automations/smart \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <X-Api-Key>' \
--data '{ "targetAddress": "example", "autoResume": false }'

Required API-key scope: trade

Hand the timing to the provider: it watches the address and delivers energy when it decides the address needs it, rather than on a threshold or a schedule.

Each delivery is roughly 131k energy and is charged to your TRX balance at your price. Enabling requires enough balance for one delivery, otherwise 402 wallet.insufficient_balance. If the balance can no longer cover the next one the rule is paused; set autoResume to have it come back by itself once you top up.

Energy only.

object
targetAddress
required
string
autoResume
boolean

OK

object
id
required
string format: uuid
type
required
string
resource
required
string
targetAddress
required
string
minimal
required
null | integer | string format: int64
/^-?(?:0|[1-9]\d*)$/
volume
required
null | integer | string format: int64
/^-?(?:0|[1-9]\d*)$/
duration
required
null | string
spentTrx
required
string
status
required
string
pauseReason
required
null | string
autoResume
required
boolean
feeSaverOrderId
required
null | integer | string format: int64
/^-?(?:0|[1-9]\d*)$/
createdAt
required
string format: date-time
updatedAt
required
string format: date-time

Payment Required

object
type
null | string
title
null | string
status
null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
detail
null | string
instance
null | string