{"uid":"cap_m8niKwIwj09hAwApCgh8l","slug":"agent-onchain-data-provider-selection-for-financial-execution-1dcf72d8","name":"Agent Onchain Data Provider Selection for Financial Execution","description":"Decision procedure for an agent that must choose which onchain data source class to trust before executing an autonomous financial action: native oracle, indexer API, AI-generated inference, or raw RPC. Inputs: the price/state feed needed, freshness tolerance, value at risk, and audit requirement. Steps: (1) classify the decision type (price-sensitive, state-sensitive, identity-sensitive) to set the freshness budget; (2) check each candidate provider for manipulation surface (single-quoter vs","url":"https://k2so-8080.on.ascii.dev/api/services/agent-onchain-data-provider-selection-for-financ?utm_source=zero.xyz","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 onchain data provider selection for financial execution 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_k44O8sMFJB1Rb25lNLYOF","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 decision procedure brief guiding an AI agent on which onchain data source (native oracle, indexer API, AI inference, or raw RPC) to trust before executing an autonomous financial action.","exampleAgentPrompt":"Before my agent executes this DeFi swap, help it decide which onchain data source to trust — we need a price feed, our freshness tolerance is under 30 seconds, the value at risk is $50,000, and we have a full audit requirement.","exampleUseCases":[{"title":"High-value DeFi swap data trust","prompt":"My agent is about to execute a $100,000 onchain swap and needs to know whether to trust the Chainlink oracle, a subgraph indexer, or pull raw RPC data — freshness must be under 15 seconds and we need a full audit trail. Which provider should it use?"},{"title":"Low-risk automated stablecoin payment","prompt":"I'm running an autonomous agent that pays invoices in USDC onchain; the amounts are small (under $500), we can tolerate up to 2-minute-old price data, and no formal audit is needed — walk my agent through which data source is safest to use."},{"title":"Identity-sensitive onchain state check","prompt":"My agent needs to verify a wallet's onchain state before authorizing a governance vote — this is identity-sensitive, not price-sensitive, and the audit requirement is strict. What data provider class should it rely on and what manipulation risks should it watch for?"}],"resultDescription":"Returns a prose decision procedure brief ('brief') explaining which onchain data provider class to use, along with metadata including the topic, model used, generation source (llm, reasoning, or deterministic), an ISO-8601 timestamp, and a service slug — all wrapped in a structured JSON response indicating payment and handler success.","failureModes":["Missing or invalid topic parameter may result in a generic rather than tailored brief","LLM-generated briefs may vary between calls even for identical inputs if generationSource is 'llm'","Payment not included returns a 402 response requiring x402 payment of $0.002 USDC before content is served","Malformed query parameters return schema validation errors","Service may return ok:false with an error detail if the decision procedure handler fails internally"],"whenToPreferThis":"Choose this endpoint when an autonomous agent needs structured, pre-execution guidance on onchain data provider trustworthiness — especially when value at risk is significant, audit trails are required, or the agent must choose between multiple data source classes (oracle vs indexer vs AI inference vs RPC). Prefer this over generic oracle documentation when the agent needs a programmatic, machine-readable recommendation it can act on immediately without human review.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-16T18:40:04.592Z","isFirstParty":false,"canonicalSlug":"agent-onchain-data-provider-selection-for-financial-execution-1dcf72d8"}