{"uid":"cap_IjXtY_9A4T2TjnBHu-MHx","slug":"block-height-base-ethereum-08852821","name":"Block Height - Base & Ethereum","description":"Pay-per-call x402 APIs for AI agents: OpenAI-compatible LLM chat, perp funding and arbitrage spreads, crypto prices, gas, FX, Solana SPL mint audit, token price by contract, x402 delivery-receipt verification, web search, clean page extraction, batch tools and deterministic code-security scanning. USDC on Base or Solana, no signup, no API key, from $0.0001 a call.","url":"https://scanpay-edge.alextaghiashvili.workers.dev/api/v1/block-height?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":{"network":{"enum":["base","ethereum"],"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"network":"base","product":"scanpay.block_height","chain_id":"eip155:8453","price_usd":0.001,"timestamp":1793462400,"block_hash":"0x32df9c2c6e6e87f7b2a95f9c5d18d4d8c6b1a2e3f4a5b6c7d8e9f0a1b2c3d4e5","block_number":53336036}},"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_gITKM8TcBu1qi3zQUmuzP","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 the latest block number, block hash, and timestamp for the Base or Ethereum blockchain via public JSON-RPC.","exampleAgentPrompt":"What's the current block number and block hash on Base right now?","exampleUseCases":[{"title":"On-chain transaction timing verification","prompt":"Can you check the latest block number and timestamp on Ethereum so I can confirm whether my transaction was included in a recent block?"},{"title":"DApp sync status check","prompt":"What's the current block height on Base? I want to make sure my app's cached state isn't more than a few blocks behind."},{"title":"Blockchain monitoring dashboard","prompt":"Grab the latest block number, hash, and timestamp for Base so I can update my real-time blockchain status dashboard."}],"resultDescription":"Returns a JSON object with the network name (e.g. 'base'), a product identifier, the EIP-155 chain ID (e.g. 'eip155:8453'), the price in USD, the current block number as an integer, the block hash as a hex string, and the block timestamp as a Unix epoch integer.","failureModes":["Invalid or unsupported network parameter returns an error","Upstream JSON-RPC node unavailability causes timeout or 503","Payment failure (x402) blocks access if USDC balance is insufficient","No query parameters provided may default to a specific network or return an error if network selection is required"],"whenToPreferThis":"Choose this endpoint when you need a quick, pay-per-call lookup of the current block height, hash, or timestamp on Base or Ethereum without managing your own RPC node or API key. It is ideal for lightweight agents that only occasionally need on-chain block data and want to avoid provisioning infrastructure. Not suited for high-frequency polling at scale due to per-call cost.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-01T06:53:33.168Z","isFirstParty":false,"canonicalSlug":"block-height-base-ethereum-08852821"}