eth_getUncleCountByBlockHash
Returns the number of uncles in a block from a block matching the given block hash.
While this method is supported, the BSC network uses the Proof of Staked Authority ( PoSA ) consensus mechanism which doesn't involve 'Uncle' blocks.
Hence all results from eth_getUncleCountByBlockHash will always return 0x0.

Example

Command Shell
Bash
1
curl https://bsc-<network>.web3api.com/v1/YOUR-API-KEY
2
-X POST
3
-H "Content-Type: application/json"
4
-d "{\"jsonrpc\":\"2.0\",\"method\":\"eth_getUncleCountByBlockHash\",\"params\": [\"0x6552cc532227d1297ee953eb6f139d75b57203ed8205b79720ca298b0ea92cb2\"],\"id\":1}"
Copied!
1
curl -X POST 'https://bsc-<network>.web3api.com/v1/YOUR-API-KEY' \
2
-H 'Content-Type: application/json' \
3
--data-raw '{"jsonrpc":"2.0","method":"eth_getUncleCountByBlockHash","params": ["0x6552cc532227d1297ee953eb6f139d75b57203ed8205b79720ca298b0ea92cb2"],"id":1}'
4
​
Copied!
Request Parameters
Response
  1. 1.
    BLOCK HASH - A string representing the hash (32 bytes) of a block.
Result Fields
UNCLE BLOCK TRANSACTION COUNT- A hex code of an integer representing the number of transactions in the specified block, or null when none are found.
Body
1
{
2
"jsonrpc":"2.0",
3
"id":1,
4
"result":"0x0"
5
}
Copied!
Last modified 6mo ago
Copy link
Contents
Example