# Glassnode Mean Gas Used Per Transaction

> Glassnode Mean Gas Used Per Transaction 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 mean amount of gas used per transaction on Ethereum or compatible L2 networks, at configurable time intervals.

## Facts

- Endpoint: GET https://x402.glassnode.com/v1/metrics/fees/gas_used_mean
- 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-mean-gas-used-per-transaction-573ace32
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_i0rBSvIta7HUkjsxJeyvO

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-mean-gas-used-per-transaction-573ace32
```

Example prompt: Pull the daily mean gas used per transaction on Ethereum from Glassnode for the last available 24h interval and give me the scalar value and timestamp.

## When to prefer this

Use this endpoint when you need Glassnode's authoritative mean gas used per transaction metric for Ethereum or L2 networks (Arbitrum, Base, Optimism) at 24h, weekly, or monthly resolution. Prefer this over generic block explorer APIs when you need historical time-series data with consistent methodology and pay-per-call access via x402.

## Known failure modes

- Missing required 'a' (asset) query parameter returns a 400 error
- Unsupported network or interval enum value returns a 400 validation error
- Payment not included or insufficient USDC results in 402 Payment Required
- Rate limiting or quota exceeded returns a 429 error
- Requesting a network not applicable to gas metrics (e.g. BTC) may return empty data or an error

## How this service works

Mean Gas Used — The mean amount of gas used per transaction. Data by Glassnode.

## Output

Returns a time-series array of objects, each containing a UNIX timestamp (t) and the mean gas used per transaction as a scalar numeric value (v) for the specified asset, network, and time interval. Response can be JSON or CSV format.

## 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"
       ],
       "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-mean-gas-used-per-transaction-573ace32/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)
