# Glassnode Total Gas Used Sum

> Glassnode Total Gas Used Sum 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 total amount of gas used across all transactions on a blockchain network over a given time interval.

## Facts

- Endpoint: GET https://x402.glassnode.com/v1/metrics/fees/gas_used_sum
- 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-total-gas-used-sum-74df5038
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TICwKRjOQmtoJ9LVH43Om

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-total-gas-used-sum-74df5038
```

Example prompt: Pull the total gas used on Ethereum for the last 24 hours from Glassnode — give me the JSON data with daily resolution.

## When to prefer this

Use this endpoint when you need on-chain gas usage aggregate data for Ethereum, Arbitrum, Base, or Optimism networks at daily, weekly, or monthly resolution. Ideal for monitoring network congestion trends, fee market analysis, or building dashboards tracking gas consumption over time.

## Known failure modes

- Missing required asset symbol 'a' parameter returns validation error
- Unsupported network or interval enum value returns 400 bad request
- Insufficient payment or missing x402 payment header returns 402 Payment Required
- Invalid format parameter returns error
- No data available for the requested time range returns empty array

## How this service works

Total Gas Used — The total amount of gas used across all transactions. Data by Glassnode.

## Output

Returns a time-series array where each entry contains a UNIX timestamp (t) and the total gas used (v) across all transactions in that interval, for the specified network and asset.

## 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-total-gas-used-sum-74df5038/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)
