POST
/
evm
eth_getUncleCountByBlockHash
curl --request POST \
  --url https://hyperliquid-mainnet.core.chainstack.com/4f8d8f4040bdacd1577bff8058438274/evm \
  --header 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "method": "eth_getUncleCountByBlockHash",
  "params": [
    "0x2ce91ae0ed242b4b78b432a45b982fb81a414d6b04167762ed3c7446710a4b8e"
  ],
  "id": 1
}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0x0"
}
Returns the number of uncle blocks for a given block hash. Use this method to get the count of uncle (ommer) blocks associated with a specific block.
Get your own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.

Parameters

  • blockHash (string, required) — The 32-byte hash of the block

Returns

Returns the number of uncle blocks as a hex-encoded integer, or null if the block is not found.
On Hyperliquid, uncle blocks are not part of the consensus mechanism. This method is included for Ethereum compatibility but will typically return “0x0” as Hyperliquid doesn’t produce uncle blocks.

Use cases

  • Ethereum compatibility — Maintain compatibility with Ethereum RPC interfaces
  • Block analysis tools — Complete block metadata collection
  • Network statistics — Gather comprehensive blockchain metrics
  • Protocol research — Study consensus mechanisms and block production
  • Migration tools — Ensure compatibility when porting Ethereum applications
  • Testing frameworks — Validate RPC method implementations

Body

application/json

Response

200 - application/json

Successful response with uncle count

The response is of type object.