# Glassnode Median Transaction Fees

> Glassnode Median Transaction Fees 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-14).

Returns the median fee paid per transaction for a given blockchain asset and time interval, sourced from Glassnode on-chain analytics.

## Facts

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

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-fees-f17d509c
```

Example prompt: What's the median transaction fee for Bitcoin in USD over the past 24 hours, according to Glassnode?

## When to prefer this

Use this endpoint when you need the median (rather than mean or total) transaction fee for a specific blockchain asset, which is more robust to outliers than average fees. Prefer this over mean-fee endpoints when analyzing typical user costs on a network. Ideal for fee trend analysis, cost estimation for typical transactions, and on-chain market research across BTC, ETH, SOL, XRP, BNB, DOGE, TRX, and TON.

## Known failure modes

- Missing required 'a' (asset) query parameter returns a validation error
- Unsupported asset symbol returns an enum validation error
- Invalid interval or currency values return a 400 bad request
- Payment not included or insufficient USDC triggers a 402 Payment Required response
- Network mismatch with the selected asset may return empty or error response

## How this service works

Median Transaction Fees — The median fee paid per transaction. Data by Glassnode.

## Output

Returns a time-series array of data points, each containing a Unix timestamp (t) and the median transaction fee value (v) for the specified asset, currency, and interval. The fee is expressed in the requested currency denomination (native or USD).

## 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": {
       "enum": [
        "BNB",
        "BTC",
        "DOGE",
        "ETH",
        "SOL",
        "TON",
        "TRX",
        "XRP"
       ],
       "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",
      "properties": {
       "t": {
        "type": "number"
       },
       "v": {
        "type": "number"
       }
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/glassnode-median-transaction-fees-f17d509c/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)
