Logo

Gas Pools

A gas pool holds USDC that agents spend on payments. The pool is linked to an API key and tracks balance, daily cap, and status ( healthy, low, critical, empty).

Create

POST/gas-poolJWT
FieldType
apiKeyIdstring (uuid)required
dailyCapCentsintegerrequired — 0 = no cap
alertThresholdUsdcstring (integer)required — microUSDC string
POST /gas-pool { "apiKeyId": "uuid", "dailyCapCents": 10000, "alertThresholdUsdc": "5000000" }

Balance

GET/gas-pool/:apiKeyId/balanceJWT
{ "id": "uuid", "balanceUsdc": "50000000", "status": "healthy", "dailyCapCents": 10000 }

Top Up

Send USDC on-chain to the PaymentProcessor address first, then record the txnId here to credit the pool.

POST/gas-pool/:apiKeyId/topupJWT
FieldType
amountUsdcstring (integer)required
txnIdstringrequired — Algorand txn ID
PATCH/gas-pool/:apiKeyId/settingsJWT
FieldType
dailyCapCentsintegeroptional
alertThresholdUsdcstring (integer)optional