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

@rei-network/blockchain

Package Overview
Dependencies
Maintainers
2
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rei-network/blockchain

[![NPM Version](https://img.shields.io/npm/v/@rei-network/blockchain)](https://www.npmjs.org/package/@rei-network/blockchain) ![License](https://img.shields.io/npm/l/@rei-network/blockchain)

  • 0.1.3
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-80%
Maintainers
2
Weekly downloads
 
Created
Source

@rei-network/blockchain

NPM Version License

Definition of blockchain structure and rules, based on @ethereumjs/blockchain

INSTALL

npm install @rei-network/blockchain

USAGE

blockchain = new Blockchain({
  db: chaindb, // Database to store blocks and metadata. Should be an abstract-leveldown compliant store
  database: database,
  genesisBlock, // Messages of genesis block to initialize blockchain
});

await blockchain.putBlock(block);
console.log(blockchain.latestBlock);
console.log(blockchain.totalDifficulty);

License

GNU General Public License v3.0

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