{"uid":"cap_r38x5AqfWpOnj6EFqtslx","slug":"agent-exchange-latest-block-data-296be055","name":"Agent Exchange — Latest Block Data","description":"Live data APIs for AI agents and analysts. Buy an all-access API key for $29/month with a credit card, or pay per call in USDC. No sales call.","url":"https://store.agentexchange.work/chain/block?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":{"chain":{"type":"string","description":"base|ethereum|optimism|arbitrum|polygon|gnosis (default base)"},"number":{"type":"string","description":"Block height (decimal or 0x hex) or latest|finalized|safe|earliest (default latest)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"tx_count":{"type":"number"},"congested":{"type":"boolean"},"timestamp":{"type":"number"},"utilization":{"type":"number"},"base_fee_gwei":{"type":"number"}}}}}}},"responseSchema":{"type":"json","example":{"chain":"base","gas_used":5300000,"tx_count":191,"congested":false,"gas_limit":150000000,"timestamp":1785718000,"age_seconds":4,"utilization":0.0353,"block_number":49464704,"base_fee_gwei":0.005}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.09","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.09/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.09","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.09","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_5mkKJ3zYR2K7lEZKbUJOV","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.09","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns live block metadata for a given EVM chain, including block number, timestamp, gas utilization, base fee, transaction count, and congestion status.","exampleAgentPrompt":"What does the latest block on Base look like right now — is the network congested, and what's the base fee in gwei?","exampleUseCases":[{"title":"Gas price check before sending transaction","prompt":"Before I submit this transaction, can you check the current base fee and congestion status on Ethereum so I know if it's a good time to send?"},{"title":"Real-time chain monitoring dashboard","prompt":"Pull the latest block data from Base every minute and alert me if utilization goes above 80% or the network becomes congested."},{"title":"Historical block inspection for debugging","prompt":"I need the details for block 49464704 on Base — transaction count, gas used, utilization, and timestamp — to debug a timing issue in my app."}],"resultDescription":"Returns a JSON object with: chain name, block number, unix timestamp, age in seconds since block was produced, transaction count, gas used, gas limit, utilization ratio (0–1), base fee in gwei, and a boolean congestion flag.","failureModes":["Invalid chain name returns an error — must be one of base, ethereum, optimism, arbitrum, polygon, gnosis","Block number out of range or not yet finalized returns an error","Payment failure (insufficient USDC or missing x402 header) returns HTTP 402","Rate limiting or upstream RPC unavailability may return 5xx errors","Passing a non-numeric, non-hex, non-tag string as block number will fail validation"],"whenToPreferThis":"Choose this endpoint when you need a single, parsed, human-readable block summary — including congestion, gas fee, and utilization — without writing raw eth_getBlockByNumber RPC calls or parsing raw hex responses. It is ideal for agents that need to make gas-aware decisions, monitor chain health, or display chain state to users, especially across multiple EVM networks from a single API. Prefer this over raw RPC endpoints when you want normalized gwei values and a congestion flag pre-computed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T18:43:44.924Z","isFirstParty":false,"canonicalSlug":"agent-exchange-latest-block-data-296be055"}