# Glassnode Government Treasury Balances

> Glassnode Government Treasury Balances 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 BTC holdings of government entities with crypto investments, broken out per government over time, in native or USD units.

## Facts

- Endpoint: GET https://x402.glassnode.com/v1/metrics/treasuries/balance_governments
- 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-government-treasury-balances-4d0f381e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wTkBN5b75VbIbLTs56bIG

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-government-treasury-balances-4d0f381e
```

Example prompt: Pull the latest Glassnode data on government Bitcoin treasury balances for all tracked sovereign entities, denominated in USD, so I can see how much BTC each government currently holds.

## When to prefer this

Choose this endpoint when you need per-government granularity of Bitcoin holdings over time, rather than aggregate institutional or corporate treasury data. Ideal for macro analysis, sovereign crypto policy tracking, or comparing individual country-level BTC positions.

## Known failure modes

- Missing required 'a' (asset) query parameter returns 400 error
- Unsupported asset symbol (only BTC currently allowed) returns validation error
- Payment not provided or insufficient USDC causes 402 Payment Required
- Invalid currency or format enum value returns bad request
- Service unavailable or upstream Glassnode data delay returns 503

## How this service works

Treasury Balances (Governments) — Treasury Balances (Governments) shows the total holdings of the selected asset for government entities with crypto investments, broken out per government so individual positions can be tracked over time. Data is available in both native asset units and USD value. Data by Glassnode.

## Output

A time-series array of objects with timestamps and per-government BTC balance objects, showing individual sovereign holdings in either native BTC units or USD value, sourced from Glassnode on-chain data.

## 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": {
       "o": {
        "type": "object"
       },
       "t": {
        "type": "number"
       }
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/glassnode-government-treasury-balances-4d0f381e/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)
