eth_getUncleCountByBlockNumber

Returns the number of uncles for the block matching the given block number. The API credit value for this method is 80.

  1. Parameters

    blockNumber string REQUIRED

    The integer of a block number encoded in hexadecimal format starting with 0x

curl https://Krypc-End Point URL/ \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{"method":"eth_getUncleCountByBlockNumber","params":["0xc5043f"],"id":1,"jsonrpc":"2.0"}'
  1. Returns

    uncles- The integer value of the number of uncles in the block encoded as hexadecimal

Last updated