{
 "x402Version": 2,
 "resource": {
  "url": "https://agentgas.madebydevx.com/v1/gas",
  "description": "Gas for agents, cross-chain: pay USDC on Base with a gasless x402 payment (works with 0 ETH anywhere) and receive native gas on Base, Arbitrum, Optimism (ETH) or Polygon (POL) at any address. Price = native value at Chainlink spot +20% +$0.02. Params: to (optional; defaults to the payer), chain (base|arbitrum|optimism|polygon), amount (alias eth) or usd. Max $2/order. Auto-refund in USDC if we cannot deliver.",
  "mimeType": "application/json",
  "serviceName": "AgentGas by DevX Tools",
  "tags": [
   "gas",
   "eth",
   "pol",
   "base",
   "arbitrum",
   "optimism",
   "polygon",
   "cross-chain",
   "refuel",
   "agents",
   "top-up",
   "native-token"
  ]
 },
 "accepts": [
  {
   "scheme": "exact",
   "network": "eip155:8453",
   "amount": "314000",
   "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
   "payTo": "0xE7351Dca5f4E3836565996CE54CeaF3842b1510d",
   "maxTimeoutSeconds": 120,
   "extra": {
    "name": "USD Coin",
    "version": "2"
   }
  }
 ],
 "extensions": {
  "bazaar": {
   "info": {
    "input": {
     "type": "http",
     "method": "GET",
     "queryParams": {
      "to": "0xYourAgentWallet",
      "amount": "0.0001",
      "chain": "base"
     }
    },
    "output": {
     "type": "json",
     "example": {
      "order_id": "g_…",
      "status": "paid_pending_execution",
      "to": "0x…",
      "amount": "0.0001",
      "native": "ETH",
      "chain": "base",
      "payment_tx": "0x…",
      "poll": "https://agentgas.madebydevx.com/v1/order?id=g_…"
     }
    }
   },
   "schema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
     "input": {
      "type": "object",
      "properties": {
       "type": {
        "type": "string",
        "const": "http"
       },
       "method": {
        "type": "string",
        "enum": [
         "GET",
         "POST"
        ]
       },
       "queryParams": {
        "type": "object",
        "properties": {
         "to": {
          "type": "string",
          "description": "recipient EVM address; optional, defaults to the payer (the address that signs the USDC payment)"
         },
         "amount": {
          "type": "string",
          "description": "native gas to receive (ETH or POL), e.g. 0.0002; alias: eth"
         },
         "usd": {
          "type": "string",
          "description": "alternative: USD worth of native gas"
         },
         "chain": {
          "type": "string",
          "enum": [
           "base",
           "arbitrum",
           "optimism",
           "polygon"
          ],
          "description": "destination chain (payment is always USDC on Base)"
         }
        }
       }
      },
      "required": [
       "type",
       "method"
      ]
     },
     "output": {
      "type": "object"
     }
    },
    "required": [
     "input"
    ]
   }
  }
 },
 "resources": [
  {
   "url": "https://agentgas.madebydevx.com/v1/gas",
   "resource": "https://agentgas.madebydevx.com/v1/gas",
   "type": "http",
   "method": "GET",
   "description": "AgentGas by DevX Tools: Gas for agents, cross-chain: pay USDC on Base with a gasless x402 payment (works with 0 ETH anywhere) and receive native gas on Base, Arbitrum, Optimism (ETH) or Polygon (POL) at any address. Price = native value at Chainlink spot +20% +$0.02. Params: to (optional; defaults to the payer), chain (base|arbitrum|optimism|polygon), amount (alias eth) or usd. Max $2/order. Auto-refund in USDC if we cannot deliver.",
   "mimeType": "application/json",
   "x402Version": 2,
   "accepts": [
    {
     "scheme": "exact",
     "network": "eip155:8453",
     "amount": "314000",
     "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
     "payTo": "0xE7351Dca5f4E3836565996CE54CeaF3842b1510d",
     "maxTimeoutSeconds": 120,
     "extra": {
      "name": "USD Coin",
      "version": "2"
     }
    }
   ]
  }
 ],
 "chains": [
  "base",
  "arbitrum",
  "optimism",
  "polygon"
 ],
 "description": "AgentGas by DevX Tools: Gas for agents, cross-chain: pay USDC on Base with a gasless x402 payment (works with 0 ETH anywhere) and receive native gas on Base, Arbitrum, Optimism (ETH) or Polygon (POL) at any address. Price = native value at Chainlink spot +20% +$0.02. Params: to (optional; defaults to the payer), chain (base|arbitrum|optimism|polygon), amount (alias eth) or usd. Max $2/order. Auto-refund in USDC if we cannot deliver.",
 "pricing": "dynamic: native value at Chainlink spot +20% +$0.02 (max $2/order). accepts[0].amount is the price of the default order; GET /v1/gas?to=&chain=&amount= returns the exact 402 for your order. Free quote: https://agentgas.madebydevx.com/v1/quote"
}