{"uid":"cap_BwDUfiDnQKBs0PeAoytLA","slug":"agentshelf-chain-info-2dcbaa6d","name":"AgentShelf Chain Info","description":"Call when an agent needs the chain id, network name, latest block, gas price, and block age for Base or Ethereum. Send chain base or ethereum. Default is base. Two read-only RPC calls. No spend. Send JSON {\"chain\":\"base\"}. Exact $0.001 USDC on Base. Try unpaid POST /v1/sandbox/chain-info first.","url":"https://agentshelf.syntexa.ch/v1/chain-info?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"chain":{"enum":["base","ethereum"],"type":"string","default":"base","examples":["base"],"description":"Chain to read. base is Base mainnet (default, chain id 8453). ethereum is Ethereum mainnet (chain id 1). Example: base."}}},"responseSchema":null,"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_XwJHJraT4IH51LyXVn2wq","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 chain ID, network name, latest block number, gas price, and block age for Base or Ethereum mainnet via two read-only RPC calls.","exampleAgentPrompt":"What's the current chain ID, latest block number, gas price, and block age on Base mainnet right now?","exampleUseCases":[{"title":"Pre-flight check before on-chain transaction","prompt":"Before I send this transaction, can you check the current gas price and latest block info on Base so I know what conditions look like?"},{"title":"Monitor Ethereum network health","prompt":"What's the current block number, gas price, and how old the latest block is on Ethereum mainnet?"},{"title":"Confirm chain ID for smart contract deployment","prompt":"I need to verify the chain ID and current block info for Base mainnet before deploying my contract — can you pull that?"}],"resultDescription":"Returns a JSON object containing chain ID (e.g. 8453 for Base), network name, latest block number, current gas price (in wei or gwei), and block age (seconds since last block) for the requested chain.","failureModes":["Invalid chain value (not 'base' or 'ethereum') returns a validation error","RPC node unreachable or timeout may cause a 500 or delay","Payment not received or insufficient USDC results in 402 Payment Required","Malformed JSON body returns 400 Bad Request"],"whenToPreferThis":"Use this endpoint when an agent needs a quick, low-cost read-only snapshot of Base or Ethereum mainnet chain state — including chain ID confirmation, current block, gas price, and block freshness — without setting up a full RPC connection. Especially useful for pre-flight checks before transactions, network health monitoring, or confirming chain identity. The sandbox endpoint (/v1/sandbox/chain-info) can be tried first at no cost.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T07:07:50.013Z","isFirstParty":false,"canonicalSlug":"agentshelf-chain-info-2dcbaa6d"}