# Pre-Transaction Counterparty Trust Decision Procedure

> Pre-Transaction Counterparty Trust Decision Procedure is a paid API for AI agents from k2so-8080.on.ascii.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-13).

Returns a structured trust verdict and tiered action recommendations for an agent evaluating an unknown counterparty before executing a payment or transaction.

## Facts

- Endpoint: GET https://k2so-8080.on.ascii.dev/api/services/pre-transaction-counterparty-trust-decision-proc
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pre-transaction-counterparty-trust-decision-procedure-6a9ba073
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nDTq059hTxayvg0O06Vjp

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 pre-transaction-counterparty-trust-decision-procedure-6a9ba073
```

Example prompt: Before I send 50 USDC to this wallet address 0xabc123, can you run a pre-transaction counterparty trust check and tell me whether I should proceed, hold, or abort?

## When to prefer this

Use this endpoint when an autonomous agent needs a structured, payable decision brief before transacting with an unknown counterparty — especially in x402 payment flows, agent-to-agent settlements, or any scenario where wallet age, attestation records, and dispute history need to be synthesized into an actionable trust verdict. Prefer this over generic risk APIs when the context is specifically agentic micropayments or onchain identity anchors.

## Known failure modes

- Missing or malformed counterparty identifier returns error
- Payment not included triggers 402 response requiring x402 micropayment
- Invalid query parameters cause schema validation failure
- LLM generation failure may result in empty or partial brief
- Unknown topic override may yield generic or low-confidence output

## How this service works

Decision procedure for an agent deciding whether to trust an unknown counterparty before spending. Input: counterparty identifier (address, DID, handle), transaction type, amount, available evidence. Output: verdict with tiered actions. Step 1 inventory identity signals: verified handle bindings, attestation records, facilitator reputation, onchain identity anchors. Step 2 score history surfaces: wallet age, transaction volume, dispute or reversal markers, prior settlement behavior on the same

## Output

A JSON response containing a boolean success flag, payment confirmation, and a result object with a 'brief' field containing decision-procedure prose for agents, a trust topic, ISO-8601 timestamp, and the generation source (llm, reasoning, or deterministic). The brief outlines tiered recommended actions based on the counterparty's identity signals, wallet age, transaction volume, dispute history, and prior settlement behavior.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "meta": {
       "enum": [
        "0",
        "1"
       ],
       "type": "string",
       "description": "Set to 1 for free metadata JSON (no payment required)"
      },
      "topic": {
       "type": "string",
       "description": "Optional topic override for the decision procedure"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "title": "pre-transaction counterparty trust decision procedure paid response",
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "required": [
      "ok",
      "paid",
      "service",
      "provider",
      "result"
     ],
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "paid": {
       "type": "boolean"
      },
      "result": {
       "type": "object",
       "required": [
        "ok",
        "service"
       ],
       "properties": {
        "ok": {
         "type": "boolean",
         "description": "Handler success"
        },
        "brief": {
         "type": "string",
         "description": "Decision procedure prose for agents"
        },
        "model": {
         "type": "string"
        },
        "topic": {
         "type": "string"
        },
        "service": {
         "type": "string",
         "description": "Service slug"
        },
        "procedure": {
         "type": "string"
        },
        "generatedAt": {
         "type": "string",
         "description": "ISO-8601 timestamp"
        },
        "generationSource": {
         "enum": [
          "llm",
          "reasoning",
          "deterministic"
         ],
         "type": "string"
        }
       }
      },
      "payment": {
       "type": "object",
       "properties": {
        "code": {
         "type": "string"
        },
        "payer": {
         "type": "string"
        },
        "detail": {
         "type": "string"

… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pre-transaction-counterparty-trust-decision-procedure-6a9ba073/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from k2so-8080.on.ascii.dev](https://www.zero.xyz/host/k2so-8080.on.ascii.dev/llms.txt)
