{"uid":"cap_Sigiij8j4KGMNkPY_4kyf","slug":"preflight-chain-health-check-cf3f3a9b","name":"PreFlight Chain Health Check","description":"Pre-trade & pre-sign checks for autonomous agents: everything an agent verifies BEFORE signing a transaction — token due diligence, calldata red-flag decoding, oracle freshness, holder concentration, bridge routing with executable calldata, cross-venue perp funding, gas and price sanity checks. EVM chains: Ethereum, Base, Arbitrum, Optimism.","url":"https://meryol-agenticmarket-x402.hf.space/chain/health/%7Bchain%7D","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"properties":{"type":"string"}}},"responseSchema":{"type":"json","example":{"rpcs":[{"rpc":"https://mainnet.base.org","error":null,"block_ts":1715000000,"latency_ms":120,"block_number":18234567}],"chain":"base","notes":[],"head_age_s":2,"score_0_100":100,"max_lag_blocks":0,"total_rpc_count":3,"healthy_rpc_count":3,"median_block_number":18234567}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_DMWwYBSKWOPfXXxm4wZww","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns RPC health status, block head age, latency, and sync score for a specified EVM chain before signing a transaction","exampleAgentPrompt":"Before I sign this transaction on Base, check if the RPC nodes are healthy and current — I want to see the block head age, latency, and overall health score so I know the chain isn't lagging.","exampleUseCases":null,"resultDescription":"A JSON object containing a list of RPC endpoints with their individual latency, block number, block timestamp, and error status; plus aggregate metrics including chain name, head age in seconds, overall health score (0-100), max lag in blocks, total and healthy RPC counts, and the median block number.","failureModes":["Unknown or unsupported chain name returns 404 or error","RPC endpoints all down returns healthy_rpc_count=0 and low score","Chain parameter missing causes 422 validation error","Temporary network issues may return partial RPC results","HuggingFace Space cold start may cause initial timeout"],"whenToPreferThis":"Use this endpoint when an autonomous agent needs to confirm that the target EVM chain (Ethereum, Base, Arbitrum, Optimism) has live, in-sync RPC nodes before submitting or signing a transaction. Prefer this over generic uptime monitors when you need block-level freshness metrics (head_age_s, max_lag_blocks) and per-RPC latency as part of a pre-trade or pre-sign safety checklist.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-10T12:30:01.379Z","isFirstParty":false}