0.1.1 • Published 3 years ago

date2block v0.1.1

Weekly downloads
6
License
MIT
Repository
github
Last release
3 years ago

date2block

Simple utility for estimating Ethereum block numbers from dates.

Estimates are generated using previous block times, no external requests are sent. Estimates are typically accurate within a few hours.

Usage

const { date2block } = require('date2block');

const date = new Date('2020-01-01T12:00:00.000Z')

console.log(date2Block(date))
// prints 9195735