{"uid":"cap_GaMYwjS34kKaajPup-_Br","slug":"skills-onesource-io-05c80844","name":"skills.onesource.io Ethereum Block Header Fetch","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/0x1212D00","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":11918}},"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_F_n5EYBqbE-v8Al8ffatl","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 its transaction hashes by block number, tag, or hex value via eth_getBlockByNumber","exampleAgentPrompt":"Can you fetch the block header and transaction hashes for Ethereum block number 0x1212D00 on mainnet — I need the timestamp, miner, gas used, and the list of tx hashes in that block.","exampleUseCases":null,"resultDescription":"Returns the block header fields (number, hash, parentHash, miner, timestamp, gasUsed, gasLimit, difficulty, etc.) along with a list of transaction hashes included in that block, as returned by eth_getBlockByNumber on the requested network.","failureModes":["Block number out of range or future block — returns null or error","Invalid hex format for block number — schema validation error","Unsupported network value — enum validation failure","Block tag 'pending' may return null on networks without a mempool","RPC timeout or upstream node error — 5xx or gateway timeout"],"whenToPreferThis":"Use this endpoint when you need block-level metadata (header fields, transaction list) for a specific block on Ethereum or supported EVM chains (Base, Avalanche, Sepolia, MegaETH). Prefer this over transaction-level endpoints when you need block context rather than individual transaction details, and over full-block endpoints when you only need the header and tx hashes rather than full transaction objects.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:41:08.673Z","isFirstParty":false}