{"uid":"cap_pfnWAjZa66baHFC-DcR4g","slug":"per-rail-fee-and-settlement-speed-ranking-procedure-for-agent-x402-d84f3237","name":"Per-Rail Fee and Settlement-Speed Ranking Procedure for Agent x402 Settlement","description":"Paid agent-facing brief on per-rail fee and settlement-speed ranking procedure for agent x402 settlement: a deterministic decision procedure that converts measured per-rail fee observations and settlement-speed observations into a ranked rail order for an agent's next settlement, with data-collection steps, normalization across rails with different units (gas vs fee vs priority), staleness rules for observations, and a tie-break ladder. Distinct from route selection (which picks a rail given an","url":"https://k2so.wrong.systems/api/services/per-rail-fee-and-settlement-speed-ranking-proced?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":"per-rail fee and settlement-speed ranking procedure for agent x402 set 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":"per-rail-fee-and-settlement-speed-ranking-proced","procedure":"same as brief","generatedAt":"2026-01-01T00:00:00.000Z","generationSource":"deterministic"},"service":"per-rail-fee-and-settlement-speed-ranking-proced","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":"down","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_FZJDwFTvfulwt2lJdVhUF","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 that ranks blockchain payment rails by fee and settlement speed for an agent's next x402 settlement.","exampleAgentPrompt":"Give me the deterministic decision procedure for ranking x402 payment rails by fee and settlement speed — including how to normalize gas vs flat-fee vs priority units, when to discard stale observations, and how to break ties.","exampleUseCases":[{"title":"Choosing cheapest rail before settlement","prompt":"I'm about to settle an x402 payment and I have fee observations from three rails — Ethereum, Base, and Arbitrum — collected in the last 10 minutes. Give me the ranked order of rails by cost and settlement speed so I know which one to use."},{"title":"Normalizing mixed-unit fee data","prompt":"My agent has collected gas-unit fees from one rail and flat USDC fees from another. Walk me through the normalization procedure so I can compare them apples-to-apples before ranking rails for the next settlement."},{"title":"Handling stale fee observations","prompt":"Some of my rail fee observations are 30 minutes old — how do I apply the staleness rules from the x402 rail-ranking procedure to decide which data to discard or refresh before I finalize the ranked order?"}],"resultDescription":"A plain-prose decision procedure (120+ words) detailing: data collection steps for per-rail fee and settlement-speed observations, normalization methodology across heterogeneous unit types (gas, flat fee, priority fee), staleness rules specifying when observations must be refreshed, and a tie-break ladder for resolving equal-rank rails. Also includes service slug, generation source (deterministic/llm/reasoning), model identifier, and ISO-8601 generatedAt timestamp.","failureModes":["Payment not received or invalid x402 payment header — returns 402 with payment details","Invalid query parameters (e.g. unsupported meta value) — returns 400 validation error","Service temporarily unavailable — returns 5xx error","Topic override not recognized — procedure may default to canonical topic","Stale or unavailable LLM backend — generationSource may fall back to deterministic"],"whenToPreferThis":"Choose this endpoint when an AI agent needs a structured, deterministic decision procedure for ranking settlement rails by fee and speed — specifically when normalizing across rails with different fee unit types (gas, flat, priority) and when staleness of observations matters. Prefer this over generic route selection endpoints, which assume a rail is already chosen; this endpoint is upstream of route selection and focuses purely on ranking. Use it when building autonomous settlement logic that must be auditable and reproducible.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-17T23:27:03.119Z","isFirstParty":false,"canonicalSlug":"per-rail-fee-and-settlement-speed-ranking-procedure-for-agent-x402-d84f3237"}