post deprecatedhttps://polygon-mainnet-rpc.allthatnode.com:8545/
Returns the number of uncles in a block from a block matching the given block number.
Log in to see full request history
Deprecated
The method related to "uncle block" is no longer supported.
Parameters
QUANTITY|TAG
- integer of a block number, or the string "latest", "earliest" or "pending", see the default block parameter.
curl https://polygon-mainnet-archive.allthatnode.com:8545/8U3JLUhzIDg3GShvy9hkCCSYkLGc11kj \
--request POST \
--header "Content-Type: application/json" \
--data '{
"jsonrpc":"2.0",
"id":1,
"method":"eth_getUncleCountByBlockNumber",
"params":[
"0x2B9BB73"
]
}'
Note: An uncle doesn't contain individual transactions.
Returns
QUANTITY
- integer of the number of uncles in this block.
{"jsonrpc":"2.0","id":1,"result":"0x1"}