{"uid":"cap_OxrNS5kP61i6Ki9-k6uOD","slug":"per-rail-x402-fee-comparison-thresholds-ed31770e","name":"Per-Rail x402 Fee Comparison Thresholds","description":"Machine-readable decision procedure for comparing x402 settlement fees across rails before committing a payment path. Inputs: candidate rails (EVM L2, Solana, XRPL, Casper, private facilitator), expected payment count, typical amount, and settlement window requirement. Procedure: 1) collect per-rail fee components, network fee plus facilitator fee plus token transfer fee, from the rail's published or probed schedule; 2) normalize all fees to USDC per 1000 settlements so volume differences do","url":"https://k2so.wrong.systems/api/services/per-rail-x402-fee-comparison-thresholds?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 x402 fee comparison thresholds 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-x402-fee-comparison-thresholds","procedure":"same as brief","generatedAt":"2026-01-01T00:00:00.000Z","generationSource":"deterministic"},"service":"per-rail-x402-fee-comparison-thresholds","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_aAu8OrUh_W37jDE09VGmY","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 machine-readable decision procedure for comparing x402 settlement fees across multiple blockchain rails (EVM L2, Solana, XRPL, Casper, private facilitator) before committing a payment path.","exampleAgentPrompt":"Before I commit to routing 500 payments of about 2 USDC each through x402, can you compare the total settlement fees across EVM L2, Solana, and XRPL rails and tell me which is cheapest for a 24-hour settlement window?","exampleUseCases":[{"title":"Choosing rail for high-volume micropayments","prompt":"I'm planning to run 2000 x402 micropayments of about 0.50 USDC each over the next week — can you compare the total fees on EVM L2, Solana, and XRPL and tell me which rail gives me the best deal with same-day settlement?"},{"title":"Evaluating private facilitator vs public rails","prompt":"I have a private facilitator option alongside Solana and Casper for my x402 payments — can you normalize the fees across all three for around 300 payments of 5 USDC each and show me the decision procedure for picking the cheapest path?"},{"title":"One-off payment path cost check","prompt":"I need to send a single x402 payment of 50 USDC and want to know which rail — EVM L2, XRPL, or Solana — has the lowest total fee including network, facilitator, and token transfer costs for near-instant settlement."}],"resultDescription":"A JSON object containing a machine-readable decision procedure with a prose explanation ('brief'/'procedure' fields), normalized fee comparison data across candidate rails, the generation source (llm, reasoning, or deterministic), an ISO-8601 timestamp, and the service slug and provider identifier. The 'brief' field provides 120+ words of actionable guidance on which rail minimizes costs given the inputs.","failureModes":["Missing or invalid query parameters result in incomplete fee comparison","Rail fee schedules may be stale if the rail's published schedule has changed recently","Private facilitator fees may not be available if not publicly probed","Payment required (402) if 'meta=1' is not set and x402 payment header is absent","Network congestion on candidate rails may cause fee normalization to be based on outdated probes","Unsupported rail identifiers return an error or are silently omitted from comparison"],"whenToPreferThis":"Use this endpoint when an agent needs to programmatically decide which blockchain rail to route x402 payments through based on cost, before committing to a payment path. Prefer this over manual fee lookups when comparing multiple rails simultaneously with normalized per-1000-settlement metrics. Especially valuable for high-volume payment scenarios where fee differences across EVM L2, Solana, XRPL, Casper, or private facilitators materially affect total cost.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T18:39:42.063Z","isFirstParty":false,"canonicalSlug":"per-rail-x402-fee-comparison-thresholds-ed31770e"}