# AgentGas by DevX Tools

> AgentGas by DevX Tools is a paid API for AI agents from agentgas.madebydevx.com, paid per call via x402, $0.085/call, status healthy (last checked 2026-12-02, last successful call 2026-11-12).

Purchases and delivers native gas tokens (ETH or POL) to any address on Base, Arbitrum, Optimism, or Polygon by paying USDC on Base via x402 gasless payment.

## Facts

- Endpoint: GET https://agentgas.madebydevx.com/v1/gas?utm_source=zero.xyz
- Price: $0.085/call
- Payment: x402
- Status: healthy
- Last checked: 2026-12-02
- Last successful call: 2026-11-12
- Success rate: 100% of calls made through Zero
- Activations on Zero: 1
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentgas-by-devx-tools-c6e719f3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_urX7E1Jj3HLcXHww1mXPE

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agentgas-by-devx-tools-c6e719f3
```

Example prompt: Send 0.0002 ETH worth of gas to 0xAbCd1234...5678 on Arbitrum — I have USDC on Base and need to bootstrap that wallet so it can start transacting.

## When to prefer this

Choose AgentGas when an AI agent or smart contract wallet needs native gas tokens on Base, Arbitrum, Optimism, or Polygon but only holds USDC — especially when the wallet has zero ETH and cannot pay gas to initiate any transaction. It is ideal for bootstrapping fresh wallets, recovering drained wallets, and cross-chain gas top-ups without requiring the caller to already hold native tokens. Prefer this over DEX swaps when the wallet cannot afford to pay gas for a swap transaction itself.

## Known failure modes

- Cannot deliver gas to address — auto-refund issued in USDC to the payer
- Order exceeds $2 maximum — request rejected
- Invalid or unsupported chain specified — enum validation error
- Invalid EVM address format for 'to' field — bad request
- Chainlink price feed unavailable — pricing failure
- x402 payment not confirmed — order not initiated
- Requested amount too small to cover fixed fee — rejection

## How this service works

Pay USDC via x402 at /v1/gas; starter fills under $0.10; MCP tools are free helpers—use an x402 client to pay. Gas for agents, cross-chain: a gasless USDC payment on Base (works with 0 ETH anywhere) delivers native gas on Base, Arbitrum, Optimism (ETH) or Polygon (POL) at any address. Default/min fills on every chain total at most $0.099 so default x402 v1 clients can pay. Larger fills are native value at Chainlink spot +20% +$0.10. Params: to (optional; defaults to the payer), chain (base|arbitrum|optimism|polygon), amount (alias eth) or usd. Max $5/order. Auto-refund in USDC if we cannot deliver. Loyalty: the flat fee drops to $0.05 after 3 delivered orders and $0.02 after 10 (per paying wallet, automatic; pass payer=). Free GET /v1/ensure checks a balance and quotes the exact top-up only when needed.

## Output

Returns a JSON object containing the order ID, destination address, chain, amount of native gas ordered, native token symbol, current status (paid_pending_execution), the USDC payment transaction hash, and a poll URL to check delivery progress. The agent can poll the returned URL to confirm final delivery or detect an auto-refund.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "POST"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "to": {
       "type": "string",
       "description": "recipient EVM address; optional, defaults to the payer (the address that signs the USDC payment)"
      },
      "usd": {
       "type": "string",
       "description": "alternative: USD worth of native gas"
      },
      "chain": {
       "enum": [
        "base",
        "arbitrum",
        "optimism",
        "polygon"
       ],
       "type": "string",
       "description": "destination chain (payment is always USDC on Base)"
      },
      "amount": {
       "type": "string",
       "description": "native gas to receive (ETH or POL), e.g. 0.000025 (default); alias: eth"
      }
     }
    }
   }
  },
  "output": {
   "type": "object"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "to": "0x…",
  "poll": "https://agentgas.madebydevx.com/v1/order?id=g_…",
  "chain": "base",
  "amount": "0.000025",
  "native": "ETH",
  "status": "paid_pending_execution",
  "order_id": "g_…",
  "payment_tx": "0x…"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentgas-by-devx-tools-c6e719f3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentgas.madebydevx.com](https://www.zero.xyz/host/agentgas.madebydevx.com/llms.txt)
