# Glassnode Median Transaction Gas Price

> Glassnode Median Transaction Gas Price is a paid API for AI agents from x402.glassnode.com, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-15).

Returns the median gas price paid per transaction for a given blockchain asset and time interval

## Facts

- Endpoint: GET https://x402.glassnode.com/v1/metrics/fees/gas_price_median
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/glassnode-median-transaction-gas-price-5f57e5fe
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ABtYwqIwlAAUkKL7G55JO

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability glassnode-median-transaction-gas-price-5f57e5fe
```

Example prompt: Can you pull the median gas price for ETH transactions from Glassnode over the last 24 hours, denominated in USD?

## When to prefer this

Use this endpoint when you need reliable, institutional-grade on-chain gas price data specifically the median (rather than mean or percentile) paid per transaction, especially when building fee estimation tools, monitoring network congestion, or conducting blockchain analytics. Prefer this over raw node RPC calls when you need historical time-series data across multiple intervals (24h, 1w, 1month) and networks (ETH, ARB, BASE, OPT).

## Known failure modes

- Missing required 'a' (asset) query parameter returns validation error
- Unsupported asset symbol returns 404 or empty result
- Invalid interval enum value returns 400 bad request
- Unsupported network for the given asset returns error
- Payment not processed (402) if USDC payment header missing or insufficient
- Rate limiting or quota exceeded returns 429

## How this service works

Median Transaction Gas Price — The median gas price paid per transaction. Data by Glassnode.

## Output

Returns a time-series array of median gas price data points, each containing a UNIX timestamp and a scalar value representing the median gas price paid per transaction for the specified asset, network, and interval

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "a"
     ],
     "properties": {
      "a": {
       "type": "string",
       "description": "Asset symbol, e.g. BTC, ETH"
      },
      "c": {
       "enum": [
        "native",
        "usd"
       ],
       "type": "string",
       "description": "Currency for denominated values, e.g. usd, native"
      },
      "f": {
       "enum": [
        "csv",
        "json"
       ],
       "type": "string",
       "description": "Response format: json or csv"
      },
      "i": {
       "enum": [
        "1month",
        "1w",
        "24h"
       ],
       "type": "string",
       "description": "Time interval / resolution, e.g. 24h, 1w, 1month"
      },
      "network": {
       "enum": [
        "arb",
        "base",
        "eth",
        "opt"
       ],
       "type": "string",
       "description": "Network / blockchain identifier for cross-chain metrics"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "array",
     "items": {
      "type": "object",
      "required": [
       "t"
      ],
      "properties": {
       "o": {
        "type": "object",
        "description": "Nested value object for multi-field metrics (e.g. OHLC)"
       },
       "t": {
        "type": "integer",
        "description": "UNIX timestamp (seconds, UTC) for the start of the interval"
       },
       "v": {
        "type": "number",
        "description": "Scalar metric value at the given timestamp"
       }
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/glassnode-median-transaction-gas-price-5f57e5fe/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.glassnode.com](https://www.zero.xyz/host/x402.glassnode.com/llms.txt)
