{"uid":"cap_yUGoJh7xLpXIz48Z5WWYE","slug":"base-mainnet-chain-head-info-62eb36fd","name":"Base Mainnet Chain Head Info","description":"Current Base mainnet block height and base fee per gas in wei, read from the chain at request time","url":"https://canary-production-f6b6.up.railway.app/v1/base/head?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"],"type":"string"},"queryParams":{"type":"object","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["blockHeight","baseFeePerGas","network","observedAt"],"properties":{"network":{"type":"string","description":"CAIP-2 chain id, always eip155:8453"},"observedAt":{"type":"string","description":"ISO 8601 time the chain was read"},"blockHeight":{"type":"string","description":"Latest block number on Base mainnet, decimal string"},"baseFeePerGas":{"type":"string","description":"Base fee per gas of that block, in wei, decimal string"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_mNv04nvn-ChXqkzvBjWSn","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the current block height and base fee per gas on Base mainnet, read live from the chain at request time","exampleAgentPrompt":"What's the current block height and base fee per gas on Base mainnet right now?","exampleUseCases":[{"title":"Gas fee check before transaction","prompt":"What's the current base fee per gas on Base mainnet? I want to know if gas is cheap before I submit my transaction."},{"title":"Block height monitoring for confirmation","prompt":"Can you grab the latest block number on Base mainnet so I can check how many confirmations my transaction has?"},{"title":"Real-time chain state for dashboard","prompt":"Fetch the current Base mainnet block height and base fee in wei so I can update my on-chain analytics dashboard."}],"resultDescription":"Returns a JSON object containing the latest block number on Base mainnet as a decimal string, the base fee per gas of that block in wei as a decimal string, the CAIP-2 chain ID (eip155:8453), and an ISO 8601 timestamp indicating when the chain was read.","failureModes":["Chain read timeout if Base RPC is slow or unavailable, resulting in an error response","Stale data risk if the chain node is behind — observedAt timestamp should be checked","Payment failure if x402 payment header is missing or insufficient (HTTP 402)","Network connectivity issues may result in a 5xx error"],"whenToPreferThis":"Use this endpoint when you need a live, single-request snapshot of Base mainnet's current block height and base fee per gas without running your own node or managing an RPC provider. Ideal for agents that need real-time gas estimation, transaction confirmation checking, or on-chain state monitoring on Base L2 specifically. Prefer this over general Ethereum RPC calls when targeting Base mainnet (eip155:8453) and wanting a simple, paid-per-call REST interface.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T06:38:48.176Z","isFirstParty":false,"canonicalSlug":"base-mainnet-chain-head-info-62eb36fd"}