Base
Bereit, das in der Produktion aufzurufen?
Das Free-Tier deckt persönliche Projekte ab. Pay-as-you-go skaliert ohne Karte.
Base
Das Free-Tier deckt persönliche Projekte ab. Pay-as-you-go skaliert ohne Karte.
eth_getUncleByBlockHashAndIndex is the standard Ethereum JSON-RPC call that returns the uncle (ommer) block header at a given index inside the block identified by a block hash. It exists for Ethereum-compatibility, and Base — Coinbase's OP Stack optimistic rollup that uses ETH for gas — implements the full eth namespace so tooling works unchanged. The practical reality is that Base has no uncles: blocks are produced by a single sequencer roughly every 2 seconds rather than by competing miners, so no ommer headers are ever recorded. Calls against https://base.therpc.io/YOUR_API_KEY (Base mainnet, chain ID 8453 / 0x2105) therefore return null for every block hash and index.
null on Base.| # | Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|---|
| 1 | blockHash | string (hex) | Ja | The hash of the block that references the uncle. |
| 2 | uncleIndex | string (hex) | Ja | Zero-based index of the uncle within the block's uncles array. |
| Typ | Beschreibung |
|---|---|
| object | null | Block header object (no transactions array): number, hash, parentHash, sha3Uncles, miner, stateRoot, transactionsRoot, receiptsRoot, logsBloom, difficulty, gasLimit, gasUsed, timestamp, extraData, mixHash, nonce. Returns null if not found. |
Try it live in the Base playground.
| Code | Meldung | Ursache |
|---|---|---|
-32602 | Invalid params | Block hash or uncle index is malformed. |
null rather than a header.0x2 and above always return null. On Base every index returns null, so do not write logic that assumes an uncle will eventually appear.Parameter
0x-prefixed 32-byte block hash
0x-prefixed hex integer (e.g. "0x0")