Konubinix' opinionated web of thoughts

Ethereum: How to Get Current Time in Ms?



only way i know how you can get the current timestamp on the blockchain is by using the provider getBlockNumber() function to get the latest block number then use the provider getBlock() function to get details around the latest block. Finally when u have the block , the block object would have timestamp property which gives u the current time on the blockchain in seconds.