Skip to main content

Parameters

chainId
string
default:"11297108099"
required
Unique identifier for a blockchain network.
id
number
default:1
required
Request identifier used to match responses.
jsonrpc
string
default:"2.0"
required
JSON-RPC version.
method
string
default:"eth_getUncleCountByBlockHash"
required
JSON-RPC method name.
params
object
required
Parameters for eth_getUncleCountByBlockHash: [blockHash].Positional parameters for eth_getUncleCountByBlockHash:
  • params[0]: 32 Bytes - hash of the block where this transaction was included. Null when pending.

Returns

result
string
The number of uncles in the block. Example: “0x1b”.
curl --request POST \
  --url https://api.uniblock.dev/uni/v1/json-rpc?chainId=11297108099 \
  --header 'content-type: application/json' \
  --data '{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "eth_getUncleCountByBlockHash",
    "params": [
      "0xbfb3bb785c60ee4f93aa6e506f6f5d5fc5173301f537d856cac59d91e7a0ce09"
    ]
  }'
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0x1b"
}