subscribe newBlockHeaders not available
Opened this issue · 0 comments
shenzhimeng commented
web3.eth.subscribe("newBlockHeaders", { }).on("data", async (blockHelper) => { console.log(blockHelper) })
An error has occurred
return new Error('Invalid number of parameters for "' + method + '". Got ' + got + ' expected ' + expected + '!'); Error: Invalid number of parameters for "newHeads". Got 1 expected 0!