# Glassnode Gini Coefficient (x402)

> Glassnode Gini Coefficient (x402) 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 daily Gini Coefficient measuring wealth inequality across Bitcoin or Ethereum addresses

## Facts

- Endpoint: GET https://x402.glassnode.com/v1/metrics/distribution/gini
- 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-gini-coefficient-x402-1f578578
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4CORgoZS4CXKgRJIy8XQ5

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-gini-coefficient-x402-1f578578
```

Example prompt: What's the current Gini coefficient for Bitcoin from Glassnode — pull the daily 24h data in JSON format so I can see how equally BTC is distributed across addresses right now?

## When to prefer this

Use this endpoint when you need a quantitative, time-series measure of wealth concentration across blockchain addresses for Bitcoin or Ethereum. It is the standard econometric Gini inequality statistic applied to on-chain data, making it ideal for comparing distribution fairness over time or across assets. Prefer this over other on-chain metrics when the specific question is about address-level wealth equality or inequality trends.

## Known failure modes

- Missing required asset symbol 'a' returns a 400 validation error
- Unsupported asset symbol returns a 404 or empty result
- Invalid interval or format enum value returns a 400 error
- Payment not included or insufficient USDC results in 402 Payment Required
- Rate limiting may return a 429 Too Many Requests
- Network or upstream Glassnode data unavailability returns a 503

## How this service works

Gini Coefficient — Gini Coefficient is the classical inequality statistic applied to the distribution of coins over addresses. Data by Glassnode.

## Output

A JSON (or CSV) array of objects, each containing a UNIX timestamp (t) and a scalar Gini coefficient value (v) between 0 and 1 representing wealth inequality across addresses for the requested asset — higher values indicate more concentrated holdings

## 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": [
        "24h"
       ],
       "type": "string",
       "description": "Time interval / resolution, e.g. 24h, 1w, 1month"
      }
     }
    }
   },
   "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-gini-coefficient-x402-1f578578/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)
