Hi,
I would like to display the latest Ethereum-block:
currentBlock() {
return EthBlocks.latest + ,
+ EthBlocks.latest.number + ,
+ JSON.stringify(EthBlocks.latest.number) +,
+ JSON.stringify(EthBlocks.latest) + ,
+ web3.eth.blockNumber;
}
// returns [object Object], undefined, undefined, {}
An hour or something like that it works ‘EthBlocks.latest.number;’ for me. But now it returns ‘[object Object], undefined, undefined, {}’.
web3.eth.blockNumber;’ works fine but it doesn´t update by itself, so it´s not useful for me.
Help please. What´s the matter with the package Ethereum:blocks? I also created a new project and added it again. But there´s the same issue.