{"uid":"cap_9Y1u2IEXUMM3eZFhWPpxT","slug":"skills-onesource-io-f5effde3","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/22000000","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":{"type":"object","required":["_truncated","_originalSize"],"properties":{"_truncated":{"type":"boolean"},"_originalSize":{"type":"number"}}},"example":{"request":{"number":"latest","network":"ethereum"},"response":{"_truncated":true,"_originalSize":10475}},"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_k__jQibr8TSAXiv5FUO0G","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":"Fetch an Ethereum block header and transaction hashes for a given block number, tag, or hex value via eth_getBlockByNumber","exampleAgentPrompt":"Can you pull the block header and transaction hashes for Ethereum block 22000000 on mainnet?","exampleUseCases":[{"title":"Analyze miner activity patterns","prompt":"Can you check the last 10 Ethereum blocks and tell me which miners produced them and how many transactions were in each one?"},{"title":"Track transaction finality across networks","prompt":"I need you to fetch the latest finalized block on Sepolia testnet and show me all the transaction hashes included in it."},{"title":"Monitor gas usage by block","prompt":"Pull the block header info for the most recent Base network block and let me know the gas used versus the gas limit."}],"resultDescription":"Returns the block header fields (number, hash, parentHash, timestamp, miner, gasUsed, gasLimit, difficulty, etc.) and a list of transaction hashes included in the specified block, sourced via eth_getBlockByNumber from a live Ethereum RPC.","failureModes":["Block number does not exist yet (future block) — returns error or empty","Invalid hex format for block number — 400 bad request","Unsupported network value — validation error","Network RPC timeout or node unavailability — 5xx error","Block tag 'pending' may return null if no pending block exists"],"whenToPreferThis":"Use this endpoint when you need on-chain block-level data — headers, timestamps, miner info, or transaction hashes — for a specific block by integer, hex, or tag (latest/finalized/etc.) across Ethereum mainnet, Base, Avalanche, MegaETH, or Sepolia. Prefer this over general blockchain explorers when you need programmatic, structured block data without web scraping.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:32:07.084Z","isFirstParty":false}