{"uid":"cap__DpX1K1RWm6U5tW6usB8y","slug":"base-network-snapshot-2a600e49","name":"Base Network Snapshot","description":"Is Base ready to transact right now? One call returns the current block height, gas price in wei and how many seconds old the chain head is, all read at the same block. Refuses before payment if the endpoint is on the wrong chain or its head is stale, so you are never charged for a reading that is quietly out of date.","url":"https://api.zfinia.com/x402/v1/base-network-snapshot?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","properties":{},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["request_id","service_id","service_version","chain","chain_id","block_number","block_hash","rpc_calls","gas_price_wei","head_timestamp","head_age_seconds"],"properties":{"chain":{"const":"base"},"chain_id":{"const":8453},"rpc_calls":{"type":"integer","description":"Upstream RPC calls this response cost."},"block_hash":{"type":"string","description":"Hash of that block."},"request_id":{"type":"string","description":"Delivery request identifier; also returned in x-foundry-request-id."},"service_id":{"type":"string","description":"Canonical service identifier."},"block_number":{"type":"string","description":"Decimal block height every value in this response was read at."},"gas_price_wei":{"type":"string"},"head_timestamp":{"type":"integer"},"service_version":{"type":"string","description":"Version of the invoked service."},"head_age_seconds":{"type":"integer"}},"additionalProperties":false}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","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.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_0AQuCwC4IcoJk1YaxCaXl","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns current Base blockchain state — block height, gas price in wei, and chain head age — all read atomically at the same block, with built-in staleness and chain validation guards.","exampleAgentPrompt":"Before I submit my transaction, can you check if the Base mainnet is ready — specifically the current block height, gas price in wei, and how stale the chain head is right now?","exampleUseCases":[{"title":"Pre-transaction network readiness check","prompt":"I'm about to send a Base transaction — can you confirm the network is healthy, tell me the current block number, and give me the current gas price in wei so I can set my fee correctly?"},{"title":"Gas price monitoring for cost optimization","prompt":"What's the current gas price on Base mainnet right now in wei? I want to know if it's a good time to submit or if I should wait for cheaper fees."},{"title":"Chain freshness alerting in automated pipeline","prompt":"Check the Base network snapshot and tell me how many seconds old the chain head is — if it's stale, I need to know before my pipeline runs."}],"resultDescription":"Returns a JSON object containing: the decimal block height at which all values were read, the block hash, gas price in wei as a string, head timestamp as a Unix integer, head age in seconds, chain identifier ('base'), chain ID (8453), number of upstream RPC calls consumed, a unique request ID, and the service version. The endpoint refuses and does not charge if the chain is wrong or the head is stale.","failureModes":["Wrong chain detected — endpoint refuses and does not charge if it is not on Base mainnet (chain_id 8453)","Stale chain head — endpoint refuses and does not charge if the head age exceeds acceptable threshold","RPC upstream failure — upstream node unavailable, resulting in an error response","x402 payment not completed — request rejected before processing if payment challenge is not satisfied","Network timeout — upstream RPC calls take too long to complete"],"whenToPreferThis":"Use this endpoint when you need a single atomic snapshot of Base network state — block height, gas price, and chain freshness — all read at the same block, with built-in safety guards that refuse stale or wrong-chain reads without charging. Prefer this over rolling your own RPC calls when you need guaranteed consistency across these three values and want automatic staleness protection before committing to a transaction.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-18T06:49:28.268Z","isFirstParty":false,"canonicalSlug":"base-network-snapshot-2a600e49"}