eth_getUncleCountByBlockNumber
The eth_getUncleCountByBlockNumber method returns the number of uncles in a block from a block matching the given block number. Similar to eth_getUncleCountByBlockHash but uses block number for identification, making it convenient for sequential block processing and blockchain analysis.
Note that uncle blocks are an Ethereum Proof of Work concept and do not apply to Tron's consensus mechanism, so this will always return 0x0 on the Tron network. This method is included for API compatibility.
Parameters
parameter | type | description |
|---|---|---|
blockParameter | string (required) | Block number in hex or tag (latest, earliest, pending) |
Return Object
field | type | description |
|---|---|---|
result | string | The number of uncles in the specified block encoded as a hexadecimal string. Always returns "0x0" on Tron network |
Request Example
Request
Response Example
Response