date2block
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i date2block

Weekly Downloads

0

Version

0.1.1

License

MIT

Unpacked Size

105 kB

Total Files

7

Last publish

Collaborators

  • dmihal