TheRPC 시작하기
Ethereum/Core API/eth_getUncleCountByBlockNumber

eth_getUncleCountByBlockNumber

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

Use Cases

  • Real-time network monitoring
  • Block explorer functionality
  • Mining reward calculations
  • Network health assessment
  • Historical data analysis
  • Uncle rate tracking
  • Mining pool operations
  • Consensus research

Method Details

This method returns a count of uncle blocks for a specific block identified by its number or a block tag.

매개변수:

Block number in hex format or tags: latest, earliest, pending, safe, finalized

반환값:

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

Response Example

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0x0" // 0 uncles in this block
}

Block Tag Support

The blockNumber parameter accepts several special tags:

  • latest: The most recent block
  • earliest: Genesis block
  • pending: Currently pending block
  • safe: Latest safe block
  • finalized: Latest finalized block

See also

더 나아지도록 도와주세요!
이 페이지를 공유하고 더 나은 제품을 만들 수 있도록 도와주세요.