{"uid":"cap_CzumNp30NMa1axbrO9LOU","slug":"evm-network-info-api-chain-id-block-number-gas-price-fc537fb6","name":"EVM Network Info API (Chain ID, Block Number, Gas Price)","description":"EVM network info: chain id, latest block number and gas price for base|polygon|arbitrum|optimism. ?chain=base","url":"https://pyfile-agent.taile3ff35.ts.net/data/chain/network-info?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"properties":{"type":"string"}}},"responseSchema":{"type":"json","example":{"ok":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_fgsOOp1nBqgR8tn6Qkrpe","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the current chain ID, latest block number, and gas price for a specified EVM network (Base, Polygon, Arbitrum, or Optimism)","exampleAgentPrompt":"What's the current gas price and latest block number on Base right now?","exampleUseCases":[{"title":"Monitor gas prices before a DeFi transaction","prompt":"Check the current gas price on Polygon so I know if it's a good time to submit my swap transaction."},{"title":"Verify network chain ID for smart contract deployment","prompt":"What is the chain ID for Arbitrum? I need to make sure my deployment config is targeting the right network."},{"title":"Track block height across L2 networks","prompt":"Can you get me the latest block number on Optimism? I want to confirm my transaction was included in a recent block."}],"resultDescription":"A JSON object containing the chain ID (integer), the latest block number (integer), and the current gas price (in wei or gwei) for the requested EVM network (Base, Polygon, Arbitrum, or Optimism).","failureModes":["Invalid or unsupported chain name returns an error — only base, polygon, arbitrum, optimism are accepted","Missing ?chain= query parameter may return an error or default behavior","Network timeout or RPC node unavailability may result in a 503 or delayed response","Payment failure (x402) if USDC funds are insufficient"],"whenToPreferThis":"Choose this endpoint when you need real-time EVM network metadata — specifically chain ID, block number, and gas price — for one of the four supported L2/sidechain networks (Base, Polygon, Arbitrum, Optimism). It is ideal for agents that need to assess gas conditions before submitting transactions, verify network identity, or track chain progress without running a full node or managing RPC keys directly.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T04:32:18.151Z","isFirstParty":false,"canonicalSlug":"evm-network-info-api-chain-id-block-number-gas-price-fc537fb6"}