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

1.2.1 • Public • Published

npm version Build status npm npm NPM Package Quality

eth-forks

A tiny NPM package to get the details of Ethereum hardforks happened with time.

Note: Please cross-check this information before relying on it. If anything should be updated, please raise a Pull Request

Install

npm install --save eth-forks

How to use

Signature of available methods:

const listOfForks: () => string[];
const forkWithBlock: () => Record<string, number>;
const forkDetailsByName: (forkName: string) => Record<string, number>;
const fullForkDetails: Record<string, Record<string, number>>;

An example to get a list of forks will be as:

import { listOfForks } from 'eth-forks'

console.log(listOfForks())
// ["chainstart", "homestead", "dao", "tangerineWhistle", "spuriousDragon", "byzantium", "constantinople", "petersburg", "istanbul", "muirGlacier", "berlin", "london", "arrowGlacier", "grayGlacier"]

Contribution

contributions welcome

Readme

Keywords

Package Sidebar

Install

npm i eth-forks

Weekly Downloads

1

Version

1.2.1

License

MIT

Unpacked Size

5.21 kB

Total Files

6

Last publish

Collaborators

  • aniket-engg