{"uid":"cap_9O6sGs17k3kcZvpjHR-Gv","slug":"plainchain-block-data-endpoint-e6527ecd","name":"Plainchain Block Data Endpoint","description":"Gas, balances, token data, address type, approvals, transaction decoding, x402 receipt verification and verifiable randomness on Base, Arbitrum, Ethereum and Optimism. No API key: pay $0.001-$0.01 per call in USDC on Base via x402.","url":"https://plainchain.appin60.com/v1/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","required":[],"properties":{"chain":{"type":"string","description":"base (default), arbitrum, ethereum or optimism; chain ids 8453, 42161, 1, 10 also work"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"hash":"0x9c1e...","chain":"Base","number":36581662,"chainId":8453,"gasUsed":61234567,"txCount":212,"gasLimit":300000000,"timestamp":"2026-10-13T08:40:01.000Z","ageSeconds":1,"baseFeeGwei":0.005}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001042","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.001042/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001042","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001042","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_dW8rg7UyNCWKnGGPHyGgK","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001042","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 metadata (hash, number, gas usage, transaction count, base fee, timestamp) for a specified EVM-compatible chain","exampleAgentPrompt":"What does the latest block on Base look like right now — block number, base fee, gas used, and how many transactions it has?","exampleUseCases":[{"title":"Gas fee monitoring for DeFi bot","prompt":"What is the current base fee in gwei on Base so I can decide whether to submit my transaction now or wait?"},{"title":"Block freshness check for bridge health","prompt":"How old is the latest block on Arbitrum and how many transactions does it contain? I want to make sure the chain is producing blocks normally."},{"title":"Cross-chain block comparison","prompt":"Get me the latest block number and timestamp for both Ethereum mainnet and Optimism so I can compare how far apart they are."}],"resultDescription":"A JSON object containing the latest block's hash, block number, chain name and chain ID, gas used, gas limit, transaction count, timestamp (ISO 8601), age in seconds, and base fee in gwei for the specified EVM chain.","failureModes":["Unsupported chain name or chain ID returns an error response","Payment failure via x402 protocol results in 402 status with no data returned","Chain RPC outage may cause stale or missing block data","Malformed query parameter for chain results in validation error"],"whenToPreferThis":"Choose this endpoint when an AI agent needs real-time EVM block metadata (block number, gas, base fee, transaction count) on Base, Arbitrum, Ethereum, or Optimism without managing API keys — paying $0.001 per call in USDC via x402 is ideal for autonomous agents with micro-payment wallets that need on-demand, pay-as-you-go chain data.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-14T12:41:29.504Z","isFirstParty":false,"canonicalSlug":"plainchain-block-data-endpoint-e6527ecd"}