{"uid":"cap_RIh6BjNhUzffEKBiQHPcd","slug":"skills-onesource-io-a295ba1b","name":"Ethereum Network Info (Batched RPC)","description":"Ethereum network info - chain ID, block height, and gas price in one batched RPC call (eth_chainId + eth_blockNumber + eth_gasPrice)","url":"https://skills.onesource.io/api/chain/network-info","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"network":{"enum":["ethereum","sepolia","avax","megaeth","megaeth-testnet","base"],"type":"string","default":"ethereum"}}},"responseSchema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","required":["network","chain_id","gas_price","net_version","block_number"],"properties":{"network":{"type":"string"},"chain_id":{"type":"string"},"gas_price":{"type":"string"},"net_version":{"type":"string"},"block_number":{"type":"string"}}},"meta":{"type":"object","required":["endpoint","request_id"],"properties":{"endpoint":{"type":"string"},"request_id":{"type":"string"}}}}},"example":{"request":{"network":"ethereum"},"response":{"data":{"network":"ethereum","chain_id":"0x1","gas_price":"0xccf837b","net_version":"1","block_number":"0x1809352"},"meta":{"endpoint":"/api/chain/network-info","request_id":"adc4a017a5f80597"}}},"exampleRequest":{"network":"ethereum"},"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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_Nn1JfDnaJS19seajMMiFY","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns Ethereum network metadata — chain ID, block height, and gas price — in a single batched RPC call for a given network.","exampleAgentPrompt":"What's the current chain ID, block number, and gas price on Ethereum mainnet right now?","exampleUseCases":[{"title":"Check network identity before transaction submission","prompt":"Before I send this transaction, can you verify we're on the right chain and tell me what the current gas price is?"},{"title":"Monitor gas prices across multiple networks","prompt":"I need to compare gas prices right now on Ethereum mainnet versus Base so I can decide which network to use for my swap."},{"title":"Confirm testnet state for deployment verification","prompt":"What's the current block height and chain ID on Sepolia testnet? I want to make sure my contract deployed to the right network."}],"resultDescription":"Returns a JSON object with the network name, chain ID (hex), current block number (hex), gas price (hex), and net version string — all fetched in a single batched eth_chainId + eth_blockNumber + eth_gasPrice RPC call. Also includes request metadata such as endpoint path and request ID.","failureModes":["Unsupported network value returns validation error — only 'ethereum', 'sepolia', 'avax', 'megaeth', 'megaeth-testnet', 'base' are valid","RPC node unreachable or rate-limited returns 5xx error","Payment failure (x402) if USDC balance or authorization is insufficient","Stale block data if the underlying RPC node is lagging behind chain head"],"whenToPreferThis":"Use this endpoint when you need a quick, single-call snapshot of an EVM network's current state (chain ID + block height + gas price) without making three separate RPC calls. Ideal for agents that need to confirm network identity and estimate transaction fees before submitting on-chain transactions, or for monitoring current gas conditions across multiple supported networks.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:51:03.555Z","isFirstParty":false}