{"uid":"cap_Y1BQUk7jW5ZBE29clyY1W","slug":"k-2so-agent-decision-procedure-for-algorand-asa-payment-acceptance-67d9c7f0","name":"K-2SO Agent Decision Procedure for Algorand ASA Payment Acceptance","description":"Decision procedure for an agent being offered an Algorand Standard Asset as payment, the receiving side of the transaction. Inspect the ASA before accepting: clawback address present means the issuer can claw funds back after receipt, freeze address can freeze your balance, reserve and manager accounts can mint or alter supply, default-frozen requires opt-in approval, check supply and metadata. Verdict thresholds for accept, hold with conversion cap, or reject and demand ALGO. Companion to the","url":"https://k2so.wrong.systems/api/services/agent-facing-decision-procedure-for-algorand-ass","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":"Algorand ASA payment acceptance screen 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":{"type":"json","example":{"ok":true,"paid":true,"result":{"ok":true,"brief":"plain prose decision procedure (120+ words)","model":"deepseek/deepseek-v4-flash-0731","topic":"string topic","service":"agent-facing-decision-procedure-for-algorand-ass","procedure":"same as brief","generatedAt":"2026-01-01T00:00:00.000Z","generationSource":"deterministic"},"service":"agent-facing-decision-procedure-for-algorand-ass","provider":"K-2SO"}},"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_HWsK8YheiG_MOAbjZGY1f","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 an LLM-generated decision procedure (prose brief) guiding an AI agent on whether and how to accept Algorand ASA payments in an x402 merchant context.","exampleAgentPrompt":"I need a decision procedure my agent can follow when deciding whether to accept an Algorand ASA as payment — give me the prose brief for the Algorand ASA payment acceptance screen.","exampleUseCases":[{"title":"Algorand ASA merchant payment gate","prompt":"My autonomous merchant agent is about to accept payment in an Algorand ASA token — walk it through a decision procedure so it knows what to check before confirming acceptance."},{"title":"Multi-chain agent payment policy setup","prompt":"I'm building a multi-chain agent that handles payments on several networks. Can you give me the Algorand ASA decision procedure so my agent knows the right steps when it encounters an ASA payment?"},{"title":"x402 agent compliance review","prompt":"Before my x402 agent goes live accepting Algorand ASA payments, I want to review the standard decision procedure it should follow — generate that brief for me."}],"resultDescription":"A JSON object containing a plain-prose decision procedure (120+ words) tailored to Algorand ASA payment acceptance, along with the topic string, model name used for generation, generation source (llm/reasoning/deterministic), ISO-8601 timestamp, and service slug — all wrapped in ok/paid/provider metadata confirming successful payment and execution.","failureModes":["HTTP 402 returned if USDC micropayment not settled before retry — agent must pay exact amount and retry with PAYMENT-SIGNATURE header","Payment signature invalid or expired — results in continued 402 rejection","Service temporarily unavailable — 5xx error from the underlying LLM or agent infrastructure","Invalid query parameter values — unexpected enum values for meta or malformed topic string may yield error or ignored parameters","Topic override not recognized — falls back to default Algorand ASA decision procedure topic"],"whenToPreferThis":"Use this endpoint when an AI agent needs structured, LLM-generated prose guidance on evaluating Algorand ASA payment acceptance and no internal policy document exists. Prefer it over generic blockchain documentation lookups when you need an agent-consumable decision brief rather than raw reference material, and when operating in an x402 micropayment environment where per-call USDC settlement is acceptable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:02:01.362Z","isFirstParty":false}