Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eth-forks

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eth-forks

A tiny NPM package to get the details of Ethereum forks

  • 1.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
11
increased by450%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 24 Jun 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc