Premiers pas avec TheRPC
Ethereum/Core API/eth_getUncleCountByBlockHash

eth_getUncleCountByBlockHash

The eth_getUncleCountByBlockHash method returns the number of uncles (ommer blocks) in a block specified by the block hash. Uncle blocks are valid blocks that weren't included in the main chain but are still referenced and partially rewarded in Ethereum.

Use Cases

  • Block explorer statistics
  • Mining pool analytics
  • Network health monitoring
  • Block validation verification
  • Consensus algorithm research
  • Uncle rate analysis
  • Historical block data collection
  • Mining reward calculations

Method Details

This method returns a count of uncle blocks for a specific block identified by its hash.

Paramètres:

The hash of the block

Retours:

Integer of the number of uncles in this block (hexadecimal)

Response Example

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0x1" // 1 uncle in this block
}

See also

Aidez-nous à nous améliorer !
Partagez cette page et aidez-nous à créer un produit encore meilleur pour vous.