POST
Opt in to auto-funding
First-time-only enrollment into auto-funding. Creates one enrollment
row per coin with status pending; the background FeeWorker then
provisions thresholds and transitions each coin to active.
Once any enrollment exists for the enterprise this endpoint is closed —
subsequent per-coin changes must use
PATCH /api/gas-tank/v1/enterprises/:enterpriseId/coin.
Path Params
-
enterpriseIdstring requiredEnterprise identifier
Body Params
object
Coins to enroll in auto-funding for the enterprise. Each coin must be supported and have a configured enterprise fee address.
-
coinsarray of strings required
Responses
200
OK
Response Body
object
-
enrollmentsarray of objects requiredenrollments object
-
coinstring requiredCoin identifier -
statusstring enum requiredEnrollment lifecycle state: pending = opted in, FeeWorker is provisioning thresholds. active = monitored and funded by the auto-funding cron. disabled = funding paused for this coin. error = provisioning failed; see lastError.pendingactiveerrordisabled -
versionnumber requiredMonotonic write counter for optimistic concurrency -
lastErrorstring nullable requiredPopulated only when status is error; null otherwise -
updatedAtstring requiredISO 8601 timestamp of the last state change
-
403
Forbidden
Response Body
object
-
errorstring required
409
Conflict
Response Body
object
-
errorstring required
422
Unprocessable Entity
Response Body
object
-
errorstring required