{
  "x402Version": 2,
  "id": 2184,
  "slug": "2184",
  "resource": "https://base-gas-x402-production.up.railway.app/gas/cheapest-window",
  "description": "Cheapest hours of day to transact on Base, from collected gas history: hourly averages in UTC ranked cheapest first, plus the savings percent.",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x0D083590c048A243e24a75E3a7C968145DE25B44",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "20000",
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "bazaar": {
      "info": {
        "input": {
          "method": "GET",
          "queryParams": {
            "hours": 168
          },
          "type": "http"
        },
        "output": {
          "example": {
            "chain": "base-mainnet",
            "chainId": 8453,
            "cheapestHourUtc": 6,
            "coverage": {
              "hoursCovered": 168,
              "retentionHours": 168,
              "samples": 2016
            },
            "fetchedAt": "2026-07-26T06:08:54.972Z",
            "hourlyAverages": [
              {
                "avgGasPrice": 0.005,
                "hourUtc": 6,
                "samples": 84
              },
              {
                "avgGasPrice": 0.019,
                "hourUtc": 14,
                "samples": 84
              }
            ],
            "hoursObserved": 24,
            "priciestHourUtc": 14,
            "requestedHours": 168,
            "savingsPercent": 73.7,
            "units": "gwei"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "method": {
                "enum": [
                  "GET"
                ],
                "type": "string"
              },
              "queryParams": {
                "properties": {
                  "hours": {
                    "default": 168,
                    "description": "Lookback window in hours used to compute hourly averages. Defaults to 168 (7 days). Check the free GET /health route first to see how much history has been collected.",
                    "maximum": 168,
                    "minimum": 1,
                    "type": "integer"
                  }
                },
                "required": [],
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    },
    "builder-code": {
      "info": {
        "a": "bc_lhfd8zad"
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "a": {
            "description": "App builder code",
            "pattern": "^[a-z0-9_]{1,32}$",
            "type": "string"
          },
          "s": {
            "description": "Service builder codes",
            "items": {
              "pattern": "^[a-z0-9_]{1,32}$",
              "type": "string"
            },
            "type": "array"
          },
          "w": {
            "description": "Wallet builder code",
            "pattern": "^[a-z0-9_]{1,32}$",
            "type": "string"
          }
        },
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar",
    "builder-code"
  ],
  "sourceHost": "base-gas-x402-production.up.railway.app",
  "lastUpdated": "2026-09-16T18:12:40.043Z",
  "quality": {
    "calls30d": 3,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-09-16T18:12:39.805Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "base-gas-x402-production.up.railway.app",
    "manifest_name": "base-gas-x402-production.up.railway.app",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}