{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dogechain-com/json-schema/dogechain-com-address-tx-schema.json",
  "title": "AddressTx",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dogechain-com-openapi.json#/components/schemas/AddressTx",
  "properties": {
    "balance_change": {
      "$ref": "#/$defs/Amount"
    },
    "block": {
      "description": "Null while in the mempool.",
      "type": [
        "integer",
        "null"
      ]
    },
    "hash": {
      "type": "string"
    },
    "p2pk": {
      "const": true,
      "description": "Present only when the coins were paid to the address's public key (P2PK) rather than the address."
    },
    "price": {
      "$ref": "#/$defs/Price"
    },
    "time": {
      "type": "integer"
    },
    "value_received": {
      "$ref": "#/$defs/Amount"
    },
    "value_sent": {
      "$ref": "#/$defs/Amount"
    }
  },
  "required": [
    "hash",
    "time",
    "block",
    "balance_change",
    "value_received",
    "value_sent",
    "price"
  ],
  "type": "object",
  "$defs": {
    "Amount": {
      "description": "DOGE with 8 decimals, as a string.",
      "pattern": "^-?[0-9]+\\.[0-9]{8}$",
      "type": "string"
    },
    "Price": {
      "description": "The DOGE price when the block or transaction was mined; null when unknown.",
      "properties": {
        "currency": {
          "type": "string"
        },
        "value": {
          "type": "string"
        }
      },
      "required": [
        "value",
        "currency"
      ],
      "type": [
        "object",
        "null"
      ]
    }
  }
}