{"uid":"cap_GDQeCgp9Vy-acK_AYtNm8","slug":"per-rail-fee-live-data-source-normalized-timestamped-gas-fee-snapshot-cde69783","name":"Per-Rail Fee Live Data Source: Normalized, Timestamped Gas/Fee Snapshot","description":"Machine-readable procedure plus JSON schema for collecting and normalizing live per-rail fee observations across Base, Ethereum, and Solana from public RPC endpoints, so an agent can rank x402 settlement rails by current cost instead of stale guesses. Covers raw RPC calls (eth_gasPrice, getRecentPrioritizationFees), unit normalization across gas and priority fee models, timestamping and freshness rules, and a deterministic staleness verdict per rail. Verdicts: fresh, stale-refresh,","url":"https://k2so.wrong.systems/api/services/per-rail-fee-live-data-source-normalized-timesta?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 live data source: normalized, timestamped gas/fee snapshot 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-live-data-source-normalized-timesta","procedure":"same as brief","generatedAt":"2026-01-01T00:00:00.000Z","generationSource":"deterministic"},"service":"per-rail-fee-live-data-source-normalized-timesta","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_cxl-F7QqXHC8NTASxN7FM","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 normalized, timestamped gas/fee snapshot across Base, Ethereum, and Solana rails with staleness rules and decision procedure for agents choosing among x402 payment networks.","exampleAgentPrompt":"I need a normalized, timestamped snapshot of current gas fees across Base, Ethereum, and Solana rails so I can decide which network to use for my next x402 payment — include staleness rules and how to compare gas vs priority fee units.","exampleUseCases":[{"title":"Cheapest rail for agent payment","prompt":"Before I send this x402 payment, pull the latest normalized gas fee snapshot across Base, Ethereum, and Solana and tell me which rail is cheapest right now, accounting for staleness."},{"title":"Fee normalization for multi-chain dashboard","prompt":"I'm building a dashboard that compares transaction costs across chains — can you fetch a normalized, timestamped gas fee snapshot for Base, Ethereum, and Solana with the unit normalization logic included?"},{"title":"Automated rail selection decision procedure","prompt":"Give me the current per-rail fee decision procedure for GOAT's x402 payment networks — I want to know how to programmatically pick the best rail based on live gas data and staleness rules."}],"resultDescription":"A JSON object containing a decision procedure brief (prose), normalized gas/fee data across Base, Ethereum, and Solana rails, staleness rules, unit normalization guidance (gas vs priority fee), an ISO-8601 generatedAt timestamp, and generation source metadata (llm/reasoning/deterministic). Payment and service provider metadata are also included.","failureModes":["RPC data unavailable for one or more rails — snapshot may be partial or stale","Payment not completed — endpoint returns 402 Payment Required without valid x402 header","Stale data returned if public RPC latency is high — check generatedAt timestamp against staleness thresholds","Invalid query parameter values result in schema validation error","Network timeout from public RPC endpoints causes delayed or failed response"],"whenToPreferThis":"Use this endpoint when an agent needs to make a real-time, data-driven decision about which blockchain rail (Base, Ethereum, Solana) to use for an x402 payment, specifically when fee normalization across gas and priority fee units is required and staleness awareness matters. Prefer this over hardcoded fee tables or manual RPC queries when you need a unified, agent-ready decision procedure rather than raw chain data.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T19:05:41.941Z","isFirstParty":false,"canonicalSlug":"per-rail-fee-live-data-source-normalized-timestamped-gas-fee-snapshot-cde69783"}