Contents

eth_getUncleCountByBlockNumber RPC method

Parameters:

  1. Number - Integer of a block number in hexadecimal format starting with 0x.

Returns:

  1. Uncles - Integer value of the number of uncles in the block encoded as a hexadecimal.

Code Examples:

curl http://sample-endpoint-name.network.quiknode.pro/token-goes-here/ \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{"method":"eth_getUncleCountByBlockNumber","params":["0xc5043f"],"id":1,"jsonrpc":"2.0"}'
Ready to try QuickNode? Start your 7-day free trial