Parameters
data— the hash of the block
Response
quantity— the number of uncles in the block
data — the hash of the blockquantity — the number of uncles in the blocketh_getUncleCountByBlockHash code examplesconst { JsonRpcProvider } = require("ethers");
const provider = new JsonRpcProvider("CHAINSTACK_NODE_URL");
async function call() {
const result = await provider.send("eth_getUncleCountByBlockHash", []);
console.log(result);
}
call();
Was this page helpful?