Gas Tanks

Enable or disable coin auto-funding

Toggles auto-funding for a single coin in an opted-in enterprise. enable upserts the enrollment with status pending (the FeeWorker re-provisions thresholds and transitions it to active); disable sets status disabled and the auto-funding cron skips the coin. Requires an existing opt-in — call POST /api/gas-tank/v1/enterprises/{enterpriseId} first.

patch/api/gas-tank/v1/enterprises/{enterpriseId}/coin

Path parameters

enterpriseIdstring required
Example:59cd72485007a239fb00282ed480da1f

Enterprise identifier

Request body

coinstring required

Coin to enable or disable

action'enable' | 'disable' required

User intent. enable sets status pending (FeeWorker provisions thresholds and transitions to active). disable sets status disabled; the threshold is preserved but the funding cron skips the coin.

Example request

{
  "coin": "eth"
}

Response

OK

Changes

Changed in 1 of the 33 revisions of this API.1