{
  "openapi": "3.1.0",
  "info": {
    "title": "mppgas",
    "version": "0.2.0",
    "description": "Multi-chain gas tracker. Returns current slow/standard/fast gas prices in gwei, native token USD price, and 21k-gas transfer cost in USD for Ethereum, Base, Arbitrum, Optimism, Polygon, BSC, Tempo.",
    "x-guidance": "Call GET /api/gas to get gas prices for all 7 chains. Each request costs $0.01 USDC.e via Tempo MPP. No native Tempo gas required — the service is gas-abstracted (feePayer sponsored). The response includes slow/standard/fast gwei prices, native token USD price, and estimated 21000-gas transfer cost in USD, cached 10s per chain."
  },
  "paths": {
    "/api/gas": {
      "get": {
        "operationId": "getGasPrices",
        "summary": "Get gas prices for all 7 chains",
        "description": "Returns slow/standard/fast gas prices in gwei, native token USD price, and estimated 21000-gas transfer cost in USD. Results cached 10s per chain. Gas-abstracted: agents only need USDC.e, no native Tempo gas.",
        "x-payment-info": {
          "authMode": "paid",
          "protocols": ["x402"],
          "price": "0.01",
          "currency": "USDC.e",
          "currencyAddress": "0x20C000000000000000000000b9537d11c60E8b50",
          "network": "tempo",
          "chainId": 4217,
          "recipient": "0x0d509f743bc6fc907d5f63d8b0dae1fca8d80897",
          "feePayer": true,
          "gasAbstracted": true
        },
        "x-mpp": {
          "price": 10000,
          "token": "USDC.e",
          "tokenAddress": "0x20C000000000000000000000b9537d11c60E8b50",
          "recipient": "0x0d509f743bc6fc907d5f63d8b0dae1fca8d80897",
          "network": "tempo",
          "feePayer": true
        },
        "responses": {
          "200": {
            "description": "Gas data for all chains",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "chains": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "chain": { "type": "string" },
                          "slow": { "type": "number" },
                          "standard": { "type": "number" },
                          "fast": { "type": "number" },
                          "nativeUsd": { "type": "number" },
                          "transferCostUsd": { "type": "number" }
                        }
                      }
                    },
                    "cachedFor": { "type": "string" }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Payment required — attach MPP payment header with USDC.e. No native gas needed (feePayer sponsored)."
          }
        }
      }
    }
  }
}
