eth

Ethereum (ETH)

Method: POST eth_getUncleCountByBlockNumber

dropdown
POST

eth_getUncleCountByBlockNumber

返回与指定块编号匹配的块中叔叔的数量。

Parameters

QUANTITY|TAG -

表示区块链中区块索引的整数,或表示最新、最早或未决的字符串标签之一,如区块参数中所述。

Request

curl --location --request POST 'https://eth.getblock.io/mainnet/' 
--header 'x-api-key: YOUR-API-KEY' 
--header 'Content-Type: application/json' 
--data-raw '{"jsonrpc": "2.0",
"method": "eth_getUncleCountByBlockNumber",
"params": ["0xe8"],
"id": "getblock.io"}'


Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": "0x0"
}