{"uid":"cap_nDTq059hTxayvg0O06Vjp","slug":"pre-transaction-counterparty-trust-decision-procedure-6a9ba073","name":"Pre-Transaction Counterparty Trust Decision Procedure","description":"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","url":"https://k2so-8080.on.ascii.dev/api/services/pre-transaction-counterparty-trust-decision-proc","method":"GET","headers":{},"bodySchema":{"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"},"selfPay":{"type":"boolean"},"transaction":{"type":"string"}}},"service":{"type":"string"},"provider":{"type":"string","const":"K-2SO"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_yPv_C90URvj_3mhebEWgJ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a structured trust verdict and tiered action recommendations for an agent evaluating an unknown counterparty before executing a payment or transaction.","exampleAgentPrompt":"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?","exampleUseCases":[{"title":"Vetting unknown payee before x402 settlement","prompt":"I'm about to pay 0.10 USDC via x402 to a merchant endpoint I've never used before — can you run a counterparty trust evaluation on their address and tell me if it's safe to proceed?"},{"title":"DID reputation check for agent-to-agent deal","prompt":"Another agent is offering to exchange data with me for payment, but I don't know their DID. Can you assess whether their decentralized identity looks trustworthy before I agree to the transaction?"},{"title":"High-value RWA purchase counterparty screening","prompt":"I'm considering paying a new counterparty $500 for a tokenized real-world asset. Can you inventory their identity signals and transaction history and give me a verdict on whether I should trust them?"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:54:36.145Z","isFirstParty":false}