# Onchain Accounting Journal

> Onchain Accounting Journal is a paid API for AI agents from forensik.halowerk.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-30).

Analyses caller-supplied onchain accounting evidence (unbalanced entries, unclassified value, valuation gaps) and returns a risk score, classification, and recommendation based on explicit thresholds.

## Facts

- Endpoint: POST https://forensik.halowerk.com/v1/onchain-accounting-journal?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/onchain-accounting-journal-35a014a4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_M1P7freQZ6LLO_404TSet

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 onchain-accounting-journal-35a014a4 -d '<json body>'
```

Example prompt: Analyse the accounting health of the DeFi protocol at address 0xABC123 using these three evidence observations: unbalanced_entries is 4 (observed 2024-11-01T12:00:00Z from our indexer), unclassified_value_pct is 18.5 (same timestamp), and valuation_gap_pct is 7.2 — give me a risk score and classification with the thresholds used.

## When to prefer this

Choose this endpoint when you have caller-supplied accounting metrics (unbalanced entries, unclassified value percentage, valuation gap percentage) for an onchain subject and need a structured risk classification with explicit threshold transparency. It is not a chain-query tool — use it when you already have the evidence and need deterministic scoring and audit-ready output. Prefer it over generic ML classifiers when you need explainability (thresholds listed), confidence degradation on missing signals, and a strict mode for compliance workflows.

## Known failure modes

- Missing required evidence array or empty evidence returns validation error
- strict=true with any missing metric causes rejection rather than lower-confidence output
- Invalid metric enum value causes schema validation failure
- Malformed or missing ISO-8601 timestamp causes evidence rejection
- Subject string exceeding 256 characters triggers input validation error
- Exceeding 50 evidence items causes rejection

## How this service works

Onchain Accounting Journal analyses only the evidence supplied by the caller. It does not claim to query a chain, identify a legal status or replace an independent audit. Missing signals lower confidence and are listed explicitly; every classification includes the exact thresholds used.

## Output

Returns a JSON object containing: risk_score (numeric), classification (e.g. low/medium/high), confidence (0-100), recommendation (text summary), scope (always 'caller_supplied_evidence_only'), engine ('reconcile'), service name, subject echoed back, generated_at timestamp, and service_number. Missing metrics lower confidence and are listed explicitly; every classification includes the exact thresholds used.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "strict": {
   "type": "boolean",
   "default": false,
   "description": "Reject unless all documented metrics are supplied."
  },
  "context": {
   "type": "object",
   "description": "Optional non-secret labels returned unchanged for correlation.",
   "maxProperties": 20,
   "additionalProperties": {
    "type": [
     "string",
     "number",
     "boolean",
     "null"
    ]
   }
  },
  "subject": {
   "type": "string",
   "maxLength": 256,
   "minLength": 1,
   "description": "Address, transaction, protocol, asset, proposal or other subject being assessed."
  },
  "evidence": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "metric",
     "value"
    ],
    "properties": {
     "note": {
      "type": "string",
      "maxLength": 500
     },
     "value": {
      "type": [
       "number",
       "boolean"
      ]
     },
     "metric": {
      "enum": [
       "unbalanced_entries",
       "unclassified_value_pct",
       "valuation_gap_pct"
      ],
      "type": "string"
     },
     "source": {
      "type": "string",
      "maxLength": 300,
      "minLength": 1,
      "description": "Evidence source or query identifier."
     },
     "timestamp": {
      "type": "string",
      "maxLength": 40,
      "minLength": 10,
      "description": "ISO-8601 observation time."
     }
    },
    "additionalProperties": false
   },
   "maxItems": 50,
   "minItems": 1,
   "description": "Caller-supplied observations. Repeated metrics form a time series; the newest timestamp is assessed."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "scope": "caller_supplied_evidence_only",
  "engine": "reconcile",
  "service": "Onchain Accounting Journal",
  "subject": "onchain-accounting-journal-sample",
  "confidence": 100,
  "risk_score": 16.05,
  "generated_at": "2026-10-23T00:07:35.812Z",
  "classification": "low",
  "recommendation": "No supplied metric crossed a warning thr",
  "service_number": 100
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/onchain-accounting-journal-35a014a4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from forensik.halowerk.com](https://www.zero.xyz/host/forensik.halowerk.com/llms.txt)
