Skip to main content

eth_getUncleCountByBlockNumber RPC Method

Loading...

Updated on
Nov 02, 2023

eth_getUncleCountByBlockNumber RPC Method

To use the eth_getUncleCountByBlockNumber method on the Avalanche C-Chain, ensure that the end of your URL includes ext/bc/C/rpc.

Parameters

blockNumber
string
REQUIRED
Loading...

Returns

uncles
string
Loading...
Request
1
curl https://docs-demo.avalanche-mainnet.quiknode.pro \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{
5
"method": "eth_getUncleCountByBlockNumber",
6
"params": [
7
"0xc5043f"
8
],
9
"id": 1,
10
"jsonrpc": "2.0"
11
}'
1
curl https://docs-demo.avalanche-mainnet.quiknode.pro \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{
5
"method": "eth_getUncleCountByBlockNumber",
6
"params": [
7
"0xc5043f"
8
],
9
"id": 1,
10
"jsonrpc": "2.0"
11
}'
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free