{"uid":"cap_I-U5uRsZzLq_KpB4ADF5T","slug":"skills-onesource-io-e6979870","name":"skills.onesource.io Ethereum Block by Number","description":"Fetch an Ethereum block header and transaction hashes by number, tag, or hex via eth_getBlockByNumber","url":"https://skills.onesource.io/api/chain/block/:number","method":"GET","headers":{},"bodySchema":null,"responseSchema":null,"example":{"request":{"number":"latest","network":"ethereum"},"response":{"_truncated":true,"_originalSize":24156}},"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_uwz4xk2uBzvmCp6w67kCd","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":"Fetches an Ethereum block header and its transaction hashes by block number, tag, or hex string using eth_getBlockByNumber","exampleAgentPrompt":"What's in Ethereum block number 20000000 on mainnet — give me the block header and transaction hashes.","exampleUseCases":[{"title":"Audit transaction activity in latest block","prompt":"Check the most recent Ethereum block and tell me what transactions were included — I need to verify some recent on-chain activity."},{"title":"Monitor gas usage across network blocks","prompt":"Pull the block header for the last finalized block on Ethereum and show me the gas used versus the limit — I'm tracking network congestion trends."},{"title":"Verify miner and block timing data","prompt":"Fetch block details for block 19500000 on mainnet and give me the miner address, timestamp, and all the transaction hashes so I can analyze block production timing."}],"resultDescription":"Returns the block header fields (number, hash, parentHash, timestamp, miner, gasUsed, gasLimit, baseFeePerGas, etc.) and an array of transaction hashes included in that block for the specified network.","failureModes":["Block number not yet mined returns null or 404","Invalid hex format for block number returns 400 validation error","Unsupported network value returns 400 or 422","'pending' tag may return null on non-Ethereum networks","Network RPC unavailable returns 500 or timeout","Payment failure (x402) returns 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need on-chain block metadata or the list of transaction hashes in a specific block on Ethereum, Base, Avalanche, Sepolia, or MegaETH. Prefer over raw RPC calls when you want a simple REST interface with predictable pricing. Best for agents that need to inspect block timestamps, gas usage, miner info, or enumerate transactions in a block without running a full node.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:41:33.334Z","isFirstParty":false}