{"uid":"cap_P7PmYvM3G13WXgxBaMcZH","slug":"token-contract-safety-screening-decision-procedure-2127d0ef","name":"Token Contract Safety Screening Decision Procedure","description":"Deterministic pre-settlement decision procedure for an agent that is offered a token as payment, payout, collateral, or reward over x402 and must decide whether the token contract is safe to accept or interact with before any settlement. Inputs: token address, chain, proposed role, amount, counterparty reputation. Checks: contract type and upgradeability, ownership and mint authority (EOA admin vs timelock), buy-sell symmetry with a dust test (honeypot detection), fee-on-transfer tax traps,","url":"https://k2so-8080.on.ascii.dev/api/services/agent-decision-procedure-for-pre-transaction-tok","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":"Agent decision procedure for pre-transaction token contract safety screening 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_7P6Ir5dEF-3vmCSZmP6Oj","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 deterministic decision procedure for agents to evaluate whether a token contract is safe to accept as payment, collateral, or reward before settlement","exampleAgentPrompt":"Before you accept that 500 USDC-equivalent token at address 0xAbC...123 on Base as payment collateral, run a safety screen on it — check for honeypot behavior, fee-on-transfer traps, and whether the admin is a plain EOA rather than a timelock.","exampleUseCases":[{"title":"Honeypot check before accepting reward token","prompt":"I'm about to receive 1000 tokens at contract 0xDEAD...BEEF on Ethereum as a yield reward — can you run the token safety decision procedure on it first and tell me if it's a honeypot or has any sell restrictions?"},{"title":"Collateral token vetting for DeFi agent","prompt":"My agent is being offered token 0x1234...ABCD on Base as collateral for a lending position — please screen it for unsafe mint authority, upgradeability, and buy-sell asymmetry before we proceed."},{"title":"x402 payment token screening before settlement","prompt":"A counterparty with moderate reputation wants to pay me in token 0xAAAA...BBBB on Polygon for 250 units — run the pre-settlement safety check on it and tell me whether the contract is safe to accept over x402."}],"resultDescription":"A structured response containing a boolean safety decision, a prose decision procedure brief explaining the reasoning for agents, checks on contract upgradeability, ownership and mint authority, honeypot buy-sell symmetry results, fee-on-transfer detection, and a generation timestamp.","failureModes":["Token address not found on the specified chain — returns error with no result","Unsupported chain — endpoint may return an error or incomplete analysis","Rate limit or payment failure — 402 payment required response if unpaid","Network timeout when performing dust test or onchain contract inspection","Ambiguous or incomplete token metadata leading to inconclusive safety result"],"whenToPreferThis":"Use this endpoint when an AI agent is about to accept an unfamiliar token as payment, collateral, payout, or reward in an x402 or onchain context and needs a deterministic go/no-go safety check before settlement. Prefer this over generic contract explorers when you need an agent-ready decision procedure that covers honeypot detection, fee-on-transfer traps, mint authority risk, and upgradeability in a single call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:58:19.335Z","isFirstParty":false}