Api Endpoint

base-gas-x402

Is Base gas high or low right now? Up to 7 days of history every 5 min, min/max/avg/median, cheap/normal/expensive verdict.

Open interactive test console

Offering

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

Endpoint context

URL
https://base-gas-x402-production.up.railway.app/gas/history
MIME type
application/json
First seen
2026-10-19T02:38:09.139Z
Last seen
Tags
gas history, gas trend, Base, base-l2, onchain-data

Payment pricing

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

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

Observed health

Status
Healthy
Latest latency
102 ms
Average latency
284 ms
HTTP status
402
Last checked
Reachability
100% over 12 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": 24,
          "description": "Lookback window in hours. Defaults to 24. 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": 24,
              "description": "Lookback window in hours. Defaults to 24. 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": {
            "currentGasPrice": {
              "type": "number"
            },
            "requestedHours": {
              "type": "integer"
            },
            "samples": {
              "type": "array"
            },
            "summary": {
              "properties": {
                "avg": {
                  "type": "number"
                },
                "max": {
                  "type": "number"
                },
                "median": {
                  "type": "number"
                },
                "min": {
                  "type": "number"
                }
              },
              "type": "object"
            },
            "verdict": {
              "enum": [
                "cheap",
                "normal",
                "expensive",
                "flat",
                null
              ],
              "type": [
                "string",
                "null"
              ]
            }
          },
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}