# Agent Onchain Data Provider Selection for Financial Execution

> Agent Onchain Data Provider Selection for Financial Execution 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-10-16).

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.

## Facts

- Endpoint: GET https://k2so-8080.on.ascii.dev/api/services/agent-onchain-data-provider-selection-for-financ?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-onchain-data-provider-selection-for-financial-execution-1dcf72d8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_m8niKwIwj09hAwApCgh8l

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 agent-onchain-data-provider-selection-for-financial-execution-1dcf72d8
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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

## Output

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.

## 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": "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": "
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-onchain-data-provider-selection-for-financial-execution-1dcf72d8/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)
