Api Endpoint

base-gas-x402

Best time of day to send a transaction on Base: hours to avoid, cheapest hour (UTC), and what waiting saves in USD.

Open interactive test console

Offering

Provider
base-gas-x402-production.up.railway.app
Method
GET
Offering type
Api Endpoint
Transport type
http
Category
Blockchain And Crypto
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://base-gas-x402-production.up.railway.app/gas/cheapest-window
MIME type
application/json
First seen
2026-10-16T01:50:19.913Z
Last seen
Tags
gas timing, cheapest time to transact, gas savings, Base, base-l2, onchain-data

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.02 USDC
Atomic price: 20000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "20000",
    "payTo": "0x0D083590c048A243e24a75E3a7C968145DE25B44"
  }
]

Observed health

Status
Healthy
Latest latency
105 ms
Average latency
251 ms
HTTP status
402
Last checked
Reachability
100% over 15 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "GET"
      ]
    },
    "queryParams": {
      "type": "object",
      "properties": {
        "hours": {
          "type": "integer",
          "minimum": 1,
          "maximum": 168,
          "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."
        }
      },
      "required": []
    }
  },
  "required": [
    "type",
    "method"
  ],
  "additionalProperties": false
}

Output 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": {
          "properties": {
            "avoidHoursUtc": {
              "type": "array"
            },
            "cheapestHourUtc": {
              "type": "integer"
            },
            "confidence": {
              "enum": [
                "single-day",
                "provisional",
                "pattern"
              ],
              "type": "string"
            },
            "hasDailyCycle": {
              "type": "boolean"
            },
            "recommendation": {
              "type": "string"
            },
            "savingsVsAveragePercent": {
              "type": "number"
            }
          },
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}