{"uid":"cap_nFGp7iN70n8V9VvjWoUig","slug":"skills-onesource-io-0c75abac","name":"OneSource Ethereum Block by Number","description":"Returns the latest block on the chain.","url":"https://skills.onesource.io/api/chain/block/latest","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"number":{"oneOf":[{"type":"integer","minimum":0},{"enum":["latest","pending","earliest","safe","finalized"],"type":"string"},{"type":"string","pattern":"^0x[a-fA-F0-9]+$"}]},"network":{"enum":["ethereum","sepolia","avax","megaeth","megaeth-testnet","base"],"type":"string","default":"ethereum"}}},"responseSchema":null,"example":{"request":{"number":"latest","network":"ethereum"},"response":{"_truncated":true,"_originalSize":40482}},"exampleRequest":{"number":"latest","network":"ethereum"},"tags":["x402"],"displayCostAmount":"0.003","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.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_qf9VgC-DdRbcr_Y5dkcRc","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches an Ethereum block header and transaction hashes by block number, tag (latest/pending/earliest), or hex value via eth_getBlockByNumber","exampleAgentPrompt":"What does the latest Ethereum block look like — can you pull the block header and transaction hashes from the mainnet right now?","exampleUseCases":[{"title":"Monitor block production across multiple chains","prompt":"I need to track the latest blocks on Ethereum, Base, and Avalanche right now — can you fetch the current block headers and show me how many transactions are in each one?"},{"title":"Verify transaction inclusion in specific block","prompt":"Can you look up block number 19,850,000 on Ethereum and tell me if my transaction hash is in the list of transactions for that block?"},{"title":"Check pending block status before submission","prompt":"What does the pending block look like on the Sepolia testnet? I want to see the current transactions and gas limits before I submit my next transaction."}],"resultDescription":"Returns a block header including fields such as block number, hash, parent hash, timestamp, miner, gas used, gas limit, base fee, and a list of transaction hashes included in the block.","failureModes":["Invalid block number or hex format returns an error","Block tag not supported on selected network","Network enum value not recognized","Block not yet mined (pending may return null)","RPC node unavailable or timeout"],"whenToPreferThis":"Use this endpoint when you need to inspect Ethereum-compatible block headers or enumerate transactions in a specific block by number, tag, or hex. Ideal for agents monitoring chain progress, verifying block finality, or cross-referencing transaction inclusion across supported networks including Ethereum, Base, Avalanche, Sepolia, and MegaETH.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:42:43.230Z","isFirstParty":false}