Returns the number of uncles in a block from a block matching the given block number.
Request
curl 'https://rpc.web3api.io?x-api-key=YOUR-API-KEY' \
-X POST \
-H 'x-amberdata-blockchain-id: ethereum-mainnet' \
-d '{"jsonrpc":"2.0","id":1,"method":"eth_getUncleCountByBlockNumber","params":["0x5bad55"]}'
Index | Description |
---|---|
0* - blockNumber | The a block number, or the string "earliest", "latest" or "pending", as in the default block parameter. |
*Required
Response
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x1"
}