Open Razorholt opened 2 years ago
$this->eth->blockNumber();
$this->eth->blockNumber();
Sorry, I meant the latest block of the contract.
Uh, which evm chain did you use? The 'latest'
should work because it's in spec.
Alright, I changed providers in testnet and it works now, Thanks!
I need to get the latest block because 'latest' as toBlock doesn't work. I tried the code below with $toBlock = 'latest'
but it says: fromBlock must be less than or equal to toBlock. It only returns a result when I set fromBlock to 0 and toBlock to 'latest' or when I use 2 specific blocknumbers.
That's why I need to get the latest block.
Thanks!