# Glassnode El Salvador Government BTC Balance

> Glassnode El Salvador Government BTC Balance 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 on-chain BTC balance attributed to the government of El Salvador, as reported by the National Bitcoin Office (ONBTC).

## Facts

- Endpoint: GET https://x402.glassnode.com/v1/metrics/distribution/balance_el_salvador
- 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-el-salvador-government-btc-balance-96171d76
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NuUA6nUGBNdl9nI9J4j4O

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-el-salvador-government-btc-balance-96171d76
```

Example prompt: What is El Salvador's current government BTC balance according to Glassnode's on-chain data? Show it in native BTC with daily resolution.

## When to prefer this

Use this endpoint when you specifically need the on-chain BTC balance held by the government of El Salvador (ONBTC-reported), as distinct from the US government BTC balance or general exchange balance metrics. Ideal for sovereign Bitcoin adoption tracking, geopolitical crypto analysis, or benchmarking state-level BTC treasury positions.

## Known failure modes

- Missing required 'a' parameter (must be 'BTC') returns 400 error
- Invalid currency or format enum value returns 400 error
- Payment not provided or insufficient USDC results in 402 Payment Required
- Data may lag real-time by up to 24h given daily resolution
- No data returned for time ranges before El Salvador adopted Bitcoin as legal tender

## How this service works

El Salvador Government Balance — El Salvador Government Balance is the on-chain BTC balance attributed to the government of El Salvador, as reported by the National Bitcoin Office (ONBTC). Data by Glassnode.

## Output

Returns a time series array of objects with Unix timestamps (t) and BTC balance values (v) representing El Salvador's government on-chain Bitcoin holdings as reported by ONBTC, denominated in native BTC or USD depending on query parameters.

## 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": [
        "BTC"
       ],
       "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": [
        "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",
      "properties": {
       "t": {
        "type": "number"
       },
       "v": {
        "type": "number"
       }
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/glassnode-el-salvador-government-btc-balance-96171d76/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)
