Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

ethers.js get time

const blockNumber = await ethers.provider.getBlockNumber();
const {timestamp} = await ethers.provider.getBlock(blockNumber)
 
PREVIOUS NEXT
Tagged: #time
ADD COMMENT
Topic
Name
8+1 =