Dear ethereum json-rpc, "latest" is not a number. Sincerely, Everyone


but it's a string ;)


getBlockByNumber


the argument to get the latest block should be -1


ok guido van rossum


They should return NaN.


Haha fair point but whys this an issue? Ugly parsing?


Neither is safe or finalized


Ahahaha ok you just keep updating the latest block over and over and hope you got it right then…


"pending" is even less of a number


🔍 ¡Interesante observación, @mysticryuujin! La referencia a "latest" en el contexto de JSON-RPC de Ethereum puede causar confusión, ya que se espera un bloque específico en lugar de un valor variable.


United States Trends
Loading...

Something went wrong.


Something went wrong.