{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dogechain-com/json-schema/dogechain-com-rich-row-schema.json",
  "title": "RichRow",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dogechain-com-openapi.json#/components/schemas/RichRow",
  "properties": {
    "address": {
      "description": "Null for a non-standard script.",
      "type": [
        "string",
        "null"
      ]
    },
    "balance": {
      "$ref": "#/$defs/Amount"
    },
    "delta_24h": {
      "anyOf": [
        {
          "$ref": "#/$defs/Amount"
        },
        {
          "type": "null"
        }
      ],
      "description": "Null until a day of snapshots exists."
    },
    "delta_7d": {
      "anyOf": [
        {
          "$ref": "#/$defs/Amount"
        },
        {
          "type": "null"
        }
      ]
    },
    "first_seen": {
      "type": [
        "object",
        "null"
      ]
    },
    "label": {
      "type": [
        "string",
        "null"
      ]
    },
    "last_seen": {
      "type": [
        "object",
        "null"
      ]
    },
    "p2pk": {
      "const": true,
      "description": "Present only when some of the balance was paid to the address's public key."
    },
    "rank": {
      "type": "integer"
    },
    "received": {
      "$ref": "#/$defs/Amount"
    },
    "sent": {
      "$ref": "#/$defs/Amount"
    },
    "share_of_supply": {
      "type": "number"
    },
    "tx_count": {
      "type": "integer"
    }
  },
  "required": [
    "rank",
    "address",
    "balance",
    "share_of_supply",
    "tx_count",
    "received",
    "sent",
    "first_seen",
    "last_seen",
    "delta_24h",
    "delta_7d",
    "label"
  ],
  "type": "object",
  "$defs": {
    "Amount": {
      "description": "DOGE with 8 decimals, as a string.",
      "pattern": "^-?[0-9]+\\.[0-9]{8}$",
      "type": "string"
    }
  }
}