{"uid":"cap_WpS22K-QFrdchYlEuBnu6","slug":"onesource-ethereum-block-header-by-number-974e6003","name":"OneSource Ethereum Block Header by Number","description":"Fetch an Ethereum block header and transaction hashes by number, tag, or hex via eth_getBlockByNumber","url":"https://api.onesource.io/api/chain/block/:number","method":"GET","headers":{},"bodySchema":null,"responseSchema":null,"example":null,"exampleRequest":null,"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_V-lDLtRljqeqdArPZmHnY","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 value via eth_getBlockByNumber","exampleAgentPrompt":"Can you pull the block header and transaction hashes for Ethereum mainnet block number 20000000?","exampleUseCases":[{"title":"Monitor latest Ethereum blocks for MEV detection","prompt":"I need to check the latest Ethereum block header and see all transaction hashes in it so I can analyze potential MEV opportunities in real-time."},{"title":"Verify transaction inclusion in specific block","prompt":"Can you look up Ethereum block 19500000 and show me all the transaction hashes to confirm whether my transaction made it into that block?"},{"title":"Audit historical block data on Sepolia testnet","prompt":"Pull the block header and transaction details for the finalized block on Sepolia testnet so I can verify the test deployment actually went through."}],"resultDescription":"Returns an Ethereum block header object including fields like block hash, parent hash, miner, timestamp, gas used, gas limit, and an array of transaction hashes for all transactions included in that block.","failureModes":["Invalid block number format returns an error","Block number beyond the current chain head returns not found","Invalid network enum value returns a validation error","Pending or future block may return null if not yet available","Request without valid x402 payment returns 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need block-level metadata and transaction hashes for a specific Ethereum or Sepolia block, especially when identified by number, tag (latest/pending/earliest/safe/finalized), or hex value. Prefer this over raw RPC providers when you need a simple REST interface with x402 micropayment billing rather than managing a full RPC connection.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:49:03.250Z","isFirstParty":false}