I'm hoping to have some client side javascript run that will do some simple timing estimates based on the current block number. Is there a simple way to do this that doesn't require web3? I don't need access to any other data from the blockchain.


There's JSON-RPC API. In particular querying a provider eth_blockNumber should return the current block number.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.