{"uid":"cap_uTQh_dwIimm8qm3b0XHuH","slug":"agent-buyer-identity-preflight-x402-chain-data-route-plan-0ea6990b","name":"Agent Buyer Identity Preflight | x402 Chain Data Route Plan","description":"Machine-payable service intelligence for discovering, verifying, and monitoring identity, risk, authorization, execution-preflight, and evidence APIs before autonomous agents spend.","url":"https://base-agent-preflight.bytoken2023.workers.dev/v1/x402/agent/chain-data-route-plan","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"],"type":"string"},"queryParams":{"type":"object","required":["task","chain"],"properties":{"task":{"type":"string","maxLength":500,"minLength":3,"description":"Natural-language chain-data task."},"chain":{"type":"string","pattern":"^[A-Za-z0-9:_ -]{2,80}$","description":"Requested chain or CAIP-2 network label."},"data_need":{"enum":["rpc","logs","storage","trace","indexed","sql","fork","mixed"],"type":"string","description":"Primary data access shape."},"budget_usdc":{"type":"string","pattern":"^[0-9]+(?:\\.[0-9]{1,6})?$","description":"Maximum planned spend for this route."},"risk_tolerance":{"enum":["low","medium","high"],"type":"string","description":"How much uncertainty the buyer can tolerate."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"network":{"type":"string"},"product":{"type":"string"},"activity":{"type":"object"},"identity":{"type":"object"},"assessment":{"type":"object"},"provenance":{"type":"object"}}}}}}},"responseSchema":{"type":"json","example":{"network":"eip155:8453","product":"agent-chain-data-route-plan","assessment":{"flags":[],"risk_level":"low","risk_score":0}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_MtIy84PRt6bacumnxyttg","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Evaluates whether an AI agent buyer is authorized and suitable to purchase a chain-data routing product via x402, returning a risk assessment with flags and risk score.","exampleAgentPrompt":"Before you buy that Base chain RPC data feed for up to $2.00 USDC, run a preflight check to see if I'm eligible and what the risk level is — the task is fetching indexed transaction logs, low risk tolerance, on eip155:8453.","exampleUseCases":[{"title":"Preflight before buying Base chain logs","prompt":"Before spending any USDC, check whether my agent is cleared to purchase an indexed log feed on Base (eip155:8453) — the task is 'retrieve ERC-20 transfer logs for the past 7 days', budget is $0.50 USDC, and I want low risk tolerance."},{"title":"Governance screen for high-value trace data","prompt":"Run a purchase governance check for my agent: it wants to buy a transaction trace dataset on Ethereum mainnet (eip155:1), the data need is 'trace', budget up to $10 USDC, medium risk tolerance — tell me if there are any flags or blockers."},{"title":"Agent eligibility check for SQL blockchain query","prompt":"My agent is about to purchase an SQL-queryable blockchain dataset on Polygon (eip155:137) for a DeFi analytics task with a $1.00 USDC budget and high risk tolerance — can you do a preflight identity check to make sure it's allowed?"}],"resultDescription":"Returns a JSON object containing the network identifier, product name, a risk assessment object with a risk_level (e.g. 'low'), numeric risk_score, and an array of flags indicating any policy violations or concerns, plus identity and provenance sub-objects.","failureModes":["Missing required query parameters (task or chain) returns a validation error","Unsupported chain label format (not matching CAIP-2 pattern) causes a 400-level error","budget_usdc not matching numeric pattern causes schema rejection","Service unavailability on Cloudflare Workers returns 5xx","Unknown or unsupported data_need enum value causes parameter rejection"],"whenToPreferThis":"Use this endpoint when an AI agent is about to make an x402 micropayment for a blockchain data product and needs to verify buyer eligibility, policy compliance, and risk posture before committing funds. Prefer this over generic identity checks when the purchase specifically involves chain data (RPC, logs, traces, indexed, SQL, fork, or mixed) and you need a structured risk score and flag set tied to the x402 purchase governance framework.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:47:09.796Z","isFirstParty":false}