Arbitrum One
Arbitrum One
Arbitrum One
Free tier covers personal projects. Pay-as-you-go scales without a card.
eth_getUncleCountByBlockHash returns the number of uncle blocks referenced by the block identified by a given block hash, as a hex-encoded integer. On Arbitrum One — the ETH-denominated Optimistic Rollup running Nitro/ArbOS — this count is always "0x0": the chain orders blocks with a single sequencer and has no proof-of-work fork race, so no uncle (ommer) blocks are ever produced. The method is kept for Ethereum JSON-RPC compatibility so existing tooling does not break. Call it at https://arbitrum.therpc.io/YOUR_API_KEY (chain ID 42161, 0xa4b1).
eth_getUncleByBlockHashAndIndex calls; on Arbitrum One the answer is always "0x0", so the follow-up calls can be skipped entirely.| # | Name | Type | Required | Description |
|---|---|---|---|---|
| 1 | blockHash | string (hex) | Yes | The hash of the block to count uncles in. |
| Type | Description |
|---|---|
| string (hex) | Hex-encoded uncle count (always "0x0", "0x1", or "0x2" on PoW chains; "0x0" on PoS). |
Try it live in the Arbitrum One playground.
| Code | Message | Cause |
|---|---|---|
-32602 | Invalid params | Block hash is malformed. |
"0x0", mirroring post-Merge proof-of-stake chains; this method only ever yields non-zero counts against historical proof-of-work data on other networks.null rather than a count, so distinguish null (block not found) from "0x0" (block found, no uncles) in your code.Parameters
0x-prefixed 32-byte block hash