Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 542 Bytes

File metadata and controls

20 lines (13 loc) · 542 Bytes

Run Blockchain example

This directory contains an example on how to run a blockchain.

The example does these things:

  1. Instantiates a VM and a Blockchain
  2. Creates the accounts from ./test-data.json's pre
  3. Creates a genesis block
  4. Puts the blocks from ./test-data.json's blocks into the Blockchain
  5. Runs the Blockchain on the VM.

Installation

  1. Run npm install in the root of this project

Running the example

  1. Run npm run build:dist in the root of this project
  2. Run npm run example in this directory