{"uid":"cap_Hm8cQ30K9SL3nqUq7tGDL","slug":"api2ls-com-evm-block-height-latest-block-info-b2431ae2","name":"api2ls.com EVM Block Height & Latest Block Info","description":"Get the current block height and latest-block details for an EVM chain","url":"https://api2ls.com/api/block","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":{"chain":{"type":"string","description":"EVM network: base (default), ethereum, optimism, arbitrum, or polygon"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["success","blockNumber"],"properties":{"asOf":{"type":"string"},"chain":{"type":"string"},"success":{"type":"boolean"},"baseFeeGwei":{"type":"number"},"blockNumber":{"type":"number"}}}}}}},"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_kiuR8qcGo2BrXdtiPb4u_","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 number and latest block details (base fee, timestamp) for a specified EVM chain","exampleAgentPrompt":"What's the current block height and base fee on Ethereum right now?","exampleUseCases":null,"resultDescription":"Returns a JSON object with success status, the current block number, the chain name, the base fee in Gwei, and an 'asOf' timestamp indicating when the data was fetched.","failureModes":["Unsupported chain name returns an error or falls back to default (base)","Network timeout if the target EVM RPC is slow or unavailable","Missing or malformed chain query parameter may default to Base silently","Rate limiting or payment failure (HTTP 402) if USDC payment is not attached"],"whenToPreferThis":"Use this endpoint when an agent needs to know the current block height or latest block metadata (e.g. base fee) for a specific EVM chain such as Base, Ethereum, Optimism, Arbitrum, or Polygon — especially in workflows that require chain-state awareness, gas estimation context, or timing relative to block production.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:39:09.777Z","isFirstParty":false}